Skip to content

Commit

Permalink
scheduler test new behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Balogh committed Mar 27, 2019
1 parent ea908f8 commit be91ddb
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -146,10 +146,7 @@ public void testGetDelayOnPassedTasks() throws Exception {

scheduler.tick(2, TimeUnit.MILLISECONDS);

try {
assertEquals(0, task1.getDelay(TimeUnit.MILLISECONDS));
fail("should have thrown IllegalStateException");
} catch (IllegalStateException expected) {}
assertEquals(-1, task1.getDelay(TimeUnit.MILLISECONDS));
}

public class ExampleException extends Exception {}
Expand Down

0 comments on commit be91ddb

Please sign in to comment.