diff --git a/common/src/test/java/io/netty/util/HashedWheelTimerTest.java b/common/src/test/java/io/netty/util/HashedWheelTimerTest.java index 50e1ba63ec..d8c2a9c47e 100644 --- a/common/src/test/java/io/netty/util/HashedWheelTimerTest.java +++ b/common/src/test/java/io/netty/util/HashedWheelTimerTest.java @@ -131,7 +131,7 @@ public class HashedWheelTimerTest { public void testExecutionOnTime() throws InterruptedException { int tickDuration = 200; int timeout = 125; - int maxTimeout = tickDuration + timeout + tickDuration; + int maxTimeout = 2 * (tickDuration + timeout); final HashedWheelTimer timer = new HashedWheelTimer(tickDuration, TimeUnit.MILLISECONDS); final BlockingQueue queue = new LinkedBlockingQueue();