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 211be39662382a3fd91b62017f4fe5baf9e5b28a Author: Benoit Tellier <[email protected]> AuthorDate: Tue Jul 28 11:22:35 2020 +0700 JAMES-3350 Reduce EventBus retry delays for RabbitMQReindexingWithEventDeadLettersTest --- .../rabbitmq/RabbitMQReindexingWithEventDeadLettersTest.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 df2390a..20ca0b6 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 @@ -45,6 +45,7 @@ import org.apache.james.jmap.LocalHostURIBuilder; import org.apache.james.jmap.draft.JmapGuiceProbe; import org.apache.james.jmap.draft.JmapJamesServerContract; import org.apache.james.junit.categories.BasicFeature; +import org.apache.james.mailbox.events.RetryBackoffConfiguration; import org.apache.james.modules.AwsS3BlobStoreExtension; import org.apache.james.modules.RabbitMQExtension; import org.apache.james.modules.TestJMAPServerModule; @@ -100,7 +101,13 @@ class RabbitMQReindexingWithEventDeadLettersTest { .server(configuration -> CassandraRabbitMQJamesServerMain.createServer(configuration) .overrideWith(new TestJMAPServerModule()) .overrideWith(JmapJamesServerContract.DOMAIN_LIST_CONFIGURATION_MODULE) - .overrideWith(new WebadminIntegrationTestModule())) + .overrideWith(new WebadminIntegrationTestModule()) + .overrideWith(binder -> binder.bind(RetryBackoffConfiguration.class) + .toInstance(RetryBackoffConfiguration.builder() + .maxRetries(2) + .firstBackoff(java.time.Duration.ofMillis(10)) + .jitterFactor(0.2) + .build()))) .build(); private RequestSpecification webAdminApi; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
