You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2020/06/03 01:28:53 UTC

[james-project] 01/04: JAMES-3072 Await task completion in Mailbox Export webAdmin tests

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 752cdf259522ac7c4d171f6bb4b1b68ceb9cf617
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Tue Jun 2 17:03:19 2020 +0700

    JAMES-3072 Await task completion in Mailbox Export webAdmin tests
    
    Task completion cannot be expected to be instantaneous.
---
 .../james/webadmin/service/MailboxesExportRequestToTaskTest.java      | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/server/protocols/webadmin/webadmin-mailbox/src/test/java/org/apache/james/webadmin/service/MailboxesExportRequestToTaskTest.java b/server/protocols/webadmin/webadmin-mailbox/src/test/java/org/apache/james/webadmin/service/MailboxesExportRequestToTaskTest.java
index ab9eb19..0e856dc 100644
--- a/server/protocols/webadmin/webadmin-mailbox/src/test/java/org/apache/james/webadmin/service/MailboxesExportRequestToTaskTest.java
+++ b/server/protocols/webadmin/webadmin-mailbox/src/test/java/org/apache/james/webadmin/service/MailboxesExportRequestToTaskTest.java
@@ -235,6 +235,10 @@ class MailboxesExportRequestToTaskTest {
             .jsonPath()
             .get("taskId");
 
+        with()
+            .basePath(TasksRoutes.BASE)
+            .get(taskId + "/await");
+
         String fileUrl = testSystem.mailetContext.getSentMails().get(0).getMsg().getHeader(CORRESPONDING_FILE_HEADER)[0];
         ZipAssert.assertThatZip(new FileInputStream(fileUrl))
             .hasNoEntry();


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