You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2021/04/02 01:29:40 UTC

[james-project] 02/03: JAMES-3255 Try to solve DeletedMessageVaultIntegrationTest::vaultEndpointShouldRestoreImapDeletedMailbox instability

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

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

commit 5115d6c94436c0a78948af8799e946318c880f92
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Thu Apr 1 13:38:10 2021 +0700

    JAMES-3255 Try to solve DeletedMessageVaultIntegrationTest::vaultEndpointShouldRestoreImapDeletedMailbox instability
    
    Within distributed version, the listing updates happens asynchronously.
    
    Deletion of the mailbox might prevent the search engine update, leading to follow up state assertions failing...
---
 .../webadmin/integration/vault/DeletedMessageVaultIntegrationTest.java  | 2 ++
 1 file changed, 2 insertions(+)

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 2d20ea4..3ad9c36 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
@@ -33,6 +33,7 @@ import static org.apache.james.jmap.JmapCommonRequests.getAllMailboxesIds;
 import static org.apache.james.jmap.JmapCommonRequests.getLatestMessageId;
 import static org.apache.james.jmap.JmapCommonRequests.getOutboxId;
 import static org.apache.james.jmap.JmapCommonRequests.listMessageIdsForAccount;
+import static org.apache.james.jmap.JmapCommonRequests.listMessageIdsInMailbox;
 import static org.apache.james.jmap.LocalHostURIBuilder.baseUri;
 import static org.apache.james.mailbox.backup.ZipAssert.EntryChecks.hasName;
 import static org.apache.james.mailbox.backup.ZipAssert.assertThatZip;
@@ -247,6 +248,7 @@ public abstract class DeletedMessageVaultIntegrationTest {
             .select(TestIMAPClient.INBOX);
 
         testIMAPClient.moveFirstMessage(MAILBOX_NAME);
+        WAIT_TWO_MINUTES.until(() -> listMessageIdsInMailbox(homerAccessToken, otherMailboxId.serialize()).size() == 1);
 
         testIMAPClient.delete(MAILBOX_NAME);
 

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org