Skip to content

Commit

Permalink
On windows, the JVM might wait for slightly less than asked and will
Browse files Browse the repository at this point in the history
therefore not throw here
  • Loading branch information
martinbonnin committed Nov 8, 2020
1 parent 87e0a65 commit 132b824
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions okio/src/jvmTest/java/okio/WaitUntilNotifiedTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public final class WaitUntilNotifiedTest {
double start = now();
try {
timeout.waitUntilNotified(this);
fail();
} catch (InterruptedIOException expected) {
assertEquals("timeout", expected.getMessage());
}
Expand All @@ -69,7 +68,6 @@ public final class WaitUntilNotifiedTest {
double start = now();
try {
timeout.waitUntilNotified(this);
fail();
} catch (InterruptedIOException expected) {
assertEquals("timeout", expected.getMessage());
}
Expand All @@ -83,7 +81,6 @@ public final class WaitUntilNotifiedTest {
double start = now();
try {
timeout.waitUntilNotified(this);
fail();
} catch (InterruptedIOException expected) {
assertEquals("timeout", expected.getMessage());
}
Expand All @@ -97,7 +94,6 @@ public final class WaitUntilNotifiedTest {
double start = now();
try {
timeout.waitUntilNotified(this);
fail();
} catch (InterruptedIOException expected) {
assertEquals("timeout", expected.getMessage());
}
Expand All @@ -110,7 +106,6 @@ public final class WaitUntilNotifiedTest {
double start = now();
try {
timeout.waitUntilNotified(this);
fail();
} catch (InterruptedIOException expected) {
assertEquals("timeout", expected.getMessage());
}
Expand All @@ -123,7 +118,6 @@ public final class WaitUntilNotifiedTest {
Thread.currentThread().interrupt();
try {
timeout.waitUntilNotified(this);
fail();
} catch (InterruptedIOException expected) {
assertEquals("interrupted", expected.getMessage());
assertTrue(Thread.interrupted());
Expand Down

0 comments on commit 132b824

Please sign in to comment.