]> source.dussan.org Git - sonarqube.git/commitdiff
Improve stability of ProcessUtilsTest on slow env
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 18 May 2016 17:23:33 +0000 (19:23 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 18 May 2016 17:23:33 +0000 (19:23 +0200)
server/sonar-process/src/test/java/org/sonar/process/ProcessUtilsTest.java

index 9b6be953e6b5c4aabe1d0d2180f9e0479a7e4d96..8054bce07ee9c309b044f6ba19416b233a026e88 100644 (file)
@@ -37,12 +37,12 @@ public class ProcessUtilsTest {
     awaitTermination((Thread) null);
   }
 
-  @Test(timeout = 100L)
+  @Test(timeout = 250L)
   public void awaitTermination_does_not_wait_on_currentThread() {
     awaitTermination(Thread.currentThread());
   }
 
-  @Test(timeout = 3000)
+  @Test(timeout = 3_000L)
   public void awaitTermination_ignores_interrupted_exception_of_current_thread() throws InterruptedException {
     final EverRunningThread runningThread = new EverRunningThread();
     final Thread safeJoiner = new Thread() {