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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to