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());
|
timestamps.add(System.nanoTime());
|
||||||
if (empty) {
|
if (empty) {
|
||||||
try {
|
try {
|
||||||
Thread.sleep(400);
|
Thread.sleep(401);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
// Ignore
|
// Ignore
|
||||||
}
|
}
|
||||||
@ -176,7 +176,7 @@ public class SingleThreadEventLoopTest {
|
|||||||
public void run() {
|
public void run() {
|
||||||
timestamps.add(System.nanoTime());
|
timestamps.add(System.nanoTime());
|
||||||
try {
|
try {
|
||||||
Thread.sleep(50);
|
Thread.sleep(51);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
// Ignore
|
// Ignore
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user