From 90f751a88686cb2f55c7d440572d9aa44c7083af Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 18 May 2016 19:23:33 +0200 Subject: [PATCH] Improve stability of ProcessUtilsTest on slow env --- .../src/test/java/org/sonar/process/ProcessUtilsTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/sonar-process/src/test/java/org/sonar/process/ProcessUtilsTest.java b/server/sonar-process/src/test/java/org/sonar/process/ProcessUtilsTest.java index 9b6be953e6b..8054bce07ee 100644 --- a/server/sonar-process/src/test/java/org/sonar/process/ProcessUtilsTest.java +++ b/server/sonar-process/src/test/java/org/sonar/process/ProcessUtilsTest.java @@ -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() { -- 2.39.5