[#2744] Fix flakey HashedWheelTimerTest.testExecutionOnTime()
Motivation: The calculation of the max wait time for HashedWheelTimerTest.testExecutionOnTime() was wrong and so the test sometimes failed. Modifications: Fix the max wait time. Result: No more test-failures
This commit is contained in:
parent
62186856cb
commit
1e5501d304
@ -131,7 +131,7 @@ public class HashedWheelTimerTest {
|
|||||||
public void testExecutionOnTime() throws InterruptedException {
|
public void testExecutionOnTime() throws InterruptedException {
|
||||||
int tickDuration = 200;
|
int tickDuration = 200;
|
||||||
int timeout = 125;
|
int timeout = 125;
|
||||||
int maxTimeout = tickDuration + timeout + tickDuration;
|
int maxTimeout = 2 * (tickDuration + timeout);
|
||||||
final HashedWheelTimer timer = new HashedWheelTimer(tickDuration, TimeUnit.MILLISECONDS);
|
final HashedWheelTimer timer = new HashedWheelTimer(tickDuration, TimeUnit.MILLISECONDS);
|
||||||
final BlockingQueue<Long> queue = new LinkedBlockingQueue<Long>();
|
final BlockingQueue<Long> queue = new LinkedBlockingQueue<Long>();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user