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/03/26 02:41:38 UTC

[james-project] 16/16: [Build time] Comment to explain 'Speedup ComputeMessageFastViewProjectionListenerTest'

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 c25a21c7a187e6f4e499a750d23b16cfa7d9a9c4
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Tue Mar 24 14:49:39 2020 +0700

    [Build time] Comment to explain 'Speedup ComputeMessageFastViewProjectionListenerTest'
---
 .../james/jmap/event/ComputeMessageFastViewProjectionListenerTest.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/server/protocols/jmap-draft/src/test/java/org/apache/james/jmap/event/ComputeMessageFastViewProjectionListenerTest.java b/server/protocols/jmap-draft/src/test/java/org/apache/james/jmap/event/ComputeMessageFastViewProjectionListenerTest.java
index 1194d0c..5a22e2d 100644
--- a/server/protocols/jmap-draft/src/test/java/org/apache/james/jmap/event/ComputeMessageFastViewProjectionListenerTest.java
+++ b/server/protocols/jmap-draft/src/test/java/org/apache/james/jmap/event/ComputeMessageFastViewProjectionListenerTest.java
@@ -103,6 +103,8 @@ class ComputeMessageFastViewProjectionListenerTest {
     @BeforeEach
     void setup() throws Exception {
         eventDeadLetters = new MemoryEventDeadLetters();
+        // Default RetryBackoffConfiguration leads each events to be re-executed for 30s which is too long
+        // Reducing the wait time for the event bus allow a faster test suite execution without harming test correctness
         RetryBackoffConfiguration backoffConfiguration = RetryBackoffConfiguration.builder()
             .maxRetries(2)
             .firstBackoff(Duration.ofMillis(1))


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