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)); }