Fix test failures in SingleThreadEventLoopTest on Windows
- It seems like Windows sometimes sleeps less than specified. - Related issue: #726
This commit is contained in:
parent
5b81e1692d
commit
2e44a1ba91
@ -137,7 +137,7 @@ public class SingleThreadEventLoopTest {
|
||||
timestamps.add(System.nanoTime());
|
||||
if (empty) {
|
||||
try {
|
||||
Thread.sleep(400);
|
||||
Thread.sleep(401);
|
||||
} catch (InterruptedException e) {
|
||||
// Ignore
|
||||
}
|
||||
@ -176,7 +176,7 @@ public class SingleThreadEventLoopTest {
|
||||
public void run() {
|
||||
timestamps.add(System.nanoTime());
|
||||
try {
|
||||
Thread.sleep(50);
|
||||
Thread.sleep(51);
|
||||
} catch (InterruptedException e) {
|
||||
// Ignore
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user