From af06fddef1cf26718bded3631dda39e8aedc0148 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Tue, 20 Feb 2018 17:36:29 +1100 Subject: [PATCH] less fragile tests Signed-off-by: Greg Wilkins --- .../eclipse/jetty/util/thread/ReservedThreadExecutorTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jetty-util/src/test/java/org/eclipse/jetty/util/thread/ReservedThreadExecutorTest.java b/jetty-util/src/test/java/org/eclipse/jetty/util/thread/ReservedThreadExecutorTest.java index f53267ea6fd..cd9ef0a8a4b 100644 --- a/jetty-util/src/test/java/org/eclipse/jetty/util/thread/ReservedThreadExecutorTest.java +++ b/jetty-util/src/test/java/org/eclipse/jetty/util/thread/ReservedThreadExecutorTest.java @@ -174,9 +174,7 @@ public class ReservedThreadExecutorTest int available = _reservedExecutor.getAvailable(); assertThat(available,Matchers.greaterThan(0)); - TimeUnit.MILLISECONDS.sleep(IDLE/2); - TimeUnit.MILLISECONDS.sleep(IDLE/2); - TimeUnit.MILLISECONDS.sleep(IDLE/2); + TimeUnit.MILLISECONDS.sleep(2*IDLE); assertThat(_reservedExecutor.getAvailable(),Matchers.lessThan(available)); }