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/04/08 02:25:51 UTC

[james-project] 06/06: JAMES-3144 Increase ElasticSearch timeout in RabbitMQReindexingWithEventDeadLettersTest

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 b5ed9c258faff04798c633149a85cc4994ceee3b
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Sun Apr 5 22:23:42 2020 +0700

    JAMES-3144 Increase ElasticSearch timeout in RabbitMQReindexingWithEventDeadLettersTest
    
    If not this results in continuous socket timeouts.
    
    Waiting long enough is required.
    
    To be noted the interupted exception occuring before is due to the test
    timeout causing a stop while the elastic executor is still blocked.
---
 .../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 b9a95b8..bf5f7b4 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
@@ -73,11 +73,11 @@ class RabbitMQReindexingWithEventDeadLettersTest {
     private static final ConditionFactory CALMLY_AWAIT = Awaitility
         .with().pollInterval(ONE_HUNDRED_MILLISECONDS)
         .and().pollDelay(ONE_HUNDRED_MILLISECONDS)
-        .atMost(Duration.ONE_MINUTE)
+        .atMost(Duration.FIVE_MINUTES)
         .await();
 
     private static final DockerElasticSearchExtension dockerElasticSearch =
-        new DockerElasticSearchExtension().withRequestTimeout(java.time.Duration.ofSeconds(1));
+        new DockerElasticSearchExtension().withRequestTimeout(java.time.Duration.ofSeconds(5));
 
     private static final JamesServerBuilder.ServerProvider CONFIGURATION_BUILDER = configuration -> GuiceJamesServer
         .forConfiguration(configuration)


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