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/02/17 01:46:43 UTC

[james-project] 05/13: JAMES-3500 Reduce 'pause' duration

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 429006b3f7d44784e1cf49a9624e47944312807b
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Sun Feb 14 16:29:17 2021 +0700

    JAMES-3500 Reduce 'pause' duration
---
 .../rabbitmq/RabbitMQReindexingWithEventDeadLettersTest.java          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/protocols/webadmin-integration-test/distributed-webadmin-integration-test/src/test/java/org/apache/james/webadmin/integration/rabbitmq/RabbitMQReindexingWithEventDeadLettersTest.java b/server/protocols/webadmin-integration-test/distributed-webadmin-integration-test/src/test/java/org/apache/james/webadmin/integration/rabbitmq/RabbitMQReindexingWithEventDeadLettersTest.java
index b99a6fa..9c3c5fc 100644
--- a/server/protocols/webadmin-integration-test/distributed-webadmin-integration-test/src/test/java/org/apache/james/webadmin/integration/rabbitmq/RabbitMQReindexingWithEventDeadLettersTest.java
+++ b/server/protocols/webadmin-integration-test/distributed-webadmin-integration-test/src/test/java/org/apache/james/webadmin/integration/rabbitmq/RabbitMQReindexingWithEventDeadLettersTest.java
@@ -127,7 +127,7 @@ class RabbitMQReindexingWithEventDeadLettersTest {
         aliceAccessToken = authenticateJamesUser(LocalHostURIBuilder.baseUri(jmapPort), ALICE, ALICE_PASSWORD);
 
         dockerElasticSearch.getDockerES().pause();
-        Thread.sleep(Duration.ofSeconds(10).toMillis()); // Docker pause is asynchronous and we found no way to poll for it
+        Thread.sleep(Duration.ofSeconds(2).toMillis()); // Docker pause is asynchronous and we found no way to poll for it
     }
 
     @Disabled("JAMES-3011 It's already fails for a long time, but CI didn't detect this when it's not marked as BasicFeature")
@@ -155,7 +155,7 @@ class RabbitMQReindexingWithEventDeadLettersTest {
 
     private void unpauseElasticSearch() throws Exception {
         dockerElasticSearch.getDockerES().unpause();
-        Thread.sleep(Duration.ofSeconds(10).toMillis()); // Docker unpause is asynchronous and we found no way to poll for it
+        Thread.sleep(Duration.ofSeconds(2).toMillis()); // Docker unpause is asynchronous and we found no way to poll for it
     }
 
     private void aliceSavesADraft() {


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