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 2022/05/13 04:43:22 UTC

[james-project] branch master updated: [BUILD] Increase ConcurrentTestRunnerTest await time

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


The following commit(s) were added to refs/heads/master by this push:
     new d6436c0368 [BUILD] Increase ConcurrentTestRunnerTest await time
d6436c0368 is described below

commit d6436c03682f38d83c934d5f86c879b6d678e536
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Wed May 11 16:21:49 2022 +0700

    [BUILD] Increase ConcurrentTestRunnerTest await time
    
    Locally 50ms was borderline with random failures, so
    I expect the default value of 100 ms to be too low for
    being reliable on a busy CI server where context switch
    might be made expensive with expensive concurrent builds.
    
    I hereby propose a safer, higher value of 2 seconds.
---
 .../org/apache/james/util/concurrency/ConcurrentTestRunnerTest.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/container/util/src/test/java/org/apache/james/util/concurrency/ConcurrentTestRunnerTest.java b/server/container/util/src/test/java/org/apache/james/util/concurrency/ConcurrentTestRunnerTest.java
index 39c1d20d80..6f456bf78e 100644
--- a/server/container/util/src/test/java/org/apache/james/util/concurrency/ConcurrentTestRunnerTest.java
+++ b/server/container/util/src/test/java/org/apache/james/util/concurrency/ConcurrentTestRunnerTest.java
@@ -41,7 +41,7 @@ import reactor.core.publisher.Mono;
 
 class ConcurrentTestRunnerTest {
     private static final ConcurrentTestRunner.ConcurrentOperation NOOP = (threadNumber, step) -> { };
-    private static final Duration DEFAULT_AWAIT_TIME = Duration.ofMillis(100);
+    private static final Duration DEFAULT_AWAIT_TIME = Duration.ofSeconds(2);
 
     @Test
     void constructorShouldThrowOnNegativeThreadCount() {


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