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 2019/06/06 04:29:36 UTC

[james-project] 04/04: JAMES-2733 Fasten remote delivery running test

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 04f3ca25fa462a90f71a9f0849f713f2872e617c
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Wed Jun 5 10:56:43 2019 +0700

    JAMES-2733 Fasten remote delivery running test
    
    Waiting 20 seconds before returning a flux that never returns seems a bit
     long.
---
 .../transport/mailets/remote/delivery/RemoteDeliveryRunningTest.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/mailet/mailets/src/test/java/org/apache/james/transport/mailets/remote/delivery/RemoteDeliveryRunningTest.java b/server/mailet/mailets/src/test/java/org/apache/james/transport/mailets/remote/delivery/RemoteDeliveryRunningTest.java
index 8ae24c1..596eb13 100644
--- a/server/mailet/mailets/src/test/java/org/apache/james/transport/mailets/remote/delivery/RemoteDeliveryRunningTest.java
+++ b/server/mailet/mailets/src/test/java/org/apache/james/transport/mailets/remote/delivery/RemoteDeliveryRunningTest.java
@@ -62,7 +62,7 @@ public class RemoteDeliveryRunningTest {
     public void remoteDeliveryShouldStart() throws Exception {
         when(mailQueue.deQueue()).thenAnswer(invocation -> {
             countDownLatch.countDown();
-            Thread.sleep(TimeUnit.SECONDS.toMillis(20));
+            Thread.sleep(TimeUnit.SECONDS.toMillis(2));
             return Flux.never();
         });
         remoteDelivery.init(FakeMailetConfig.builder()


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