Fix test failures in SingleThreadEventLoopTest on Windows

- It seems like Windows sometimes sleeps less than specified.
- Related issue: #726
This commit is contained in:
Trustin Lee 2013-02-05 16:27:37 +09:00
parent 5b81e1692d
commit 2e44a1ba91

View File

@ -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
}