Skip to content

Commit 55cc2d4

Browse files
committed
travis is unable to run monitorSync in 1 second?
1 parent 48d20a1 commit 55cc2d4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/java/com/jnape/palatable/lambda/io/IOTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@ public void monitorSync() throws InterruptedException {
352352
IO<Unit> two = io(() -> {
353353
oneStarted.await();
354354
accesses.add("two entered");
355-
Thread.sleep(10);
356355
accesses.add("two exited");
357356
finishLine.countDown();
358357
});
@@ -365,7 +364,7 @@ public void monitorSync() throws InterruptedException {
365364
start();
366365
}};
367366

368-
if (!finishLine.await(1, SECONDS))
367+
if (!finishLine.await(5, SECONDS))
369368
fail("Expected threads to have completed by now");
370369
assertEquals(asList("one entered", "one exited", "two entered", "two exited"), accesses);
371370
}

0 commit comments

Comments
 (0)