This is an automated email from the ASF dual-hosted git repository.

chibenwa pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git


The following commit(s) were added to refs/heads/master by this push:
     new 156c54cf63 [BUILD] Improve 
DeletedMessageVaultIntegrationTest.vaultEndpointShouldNotRestoreMessageForSharee
 stability
156c54cf63 is described below

commit 156c54cf63bda45ae2730bb63fb611e054f627f4
Author: Benoit TELLIER <[email protected]>
AuthorDate: Tue Jun 30 08:41:54 2026 +0200

    [BUILD] Improve 
DeletedMessageVaultIntegrationTest.vaultEndpointShouldNotRestoreMessageForSharee
 stability
---
 .../integration/vault/DeletedMessageVaultIntegrationTest.java     | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git 
a/server/protocols/webadmin-integration-test/webadmin-integration-test-common/src/main/java/org/apache/james/webadmin/integration/vault/DeletedMessageVaultIntegrationTest.java
 
b/server/protocols/webadmin-integration-test/webadmin-integration-test-common/src/main/java/org/apache/james/webadmin/integration/vault/DeletedMessageVaultIntegrationTest.java
index 373e566524..b22225aaa0 100644
--- 
a/server/protocols/webadmin-integration-test/webadmin-integration-test-common/src/main/java/org/apache/james/webadmin/integration/vault/DeletedMessageVaultIntegrationTest.java
+++ 
b/server/protocols/webadmin-integration-test/webadmin-integration-test-common/src/main/java/org/apache/james/webadmin/integration/vault/DeletedMessageVaultIntegrationTest.java
@@ -482,13 +482,15 @@ public abstract class DeletedMessageVaultIntegrationTest {
 
         WAIT_TWO_MINUTES.untilAsserted(() -> 
assertThat(listMessagesOfHomerFromVault(jmapServer)).hasSize(1));
 
+        // The deletion was attributed to Homer, not to Bart: Bart's own vault 
stays empty
+        WAIT_TWO_MINUTES.untilAsserted(() -> 
assertThat(listMessagesOfUserFromVault(jmapServer, 
Username.of(BART))).isEmpty());
+
         // THEN Bart should not restore anything from his own DMV
         restoreMessagesFor(BART);
         awaitSearchUpToDate();
 
-        // No additional had been restored for Bart as the vault is empty
-        assertThat(listMessageIdsForAccount(bartCredential).size())
-            .isEqualTo(1);
+        // No message had been restored for Bart as his vault is empty
+        assertThat(restoredMessagesCount(bartCredential)).isEqualTo(0);
     }
 
     @Test


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to