From be91ddb2ab4d9f4c8b5f786934d0cd6e21142f74 Mon Sep 17 00:00:00 2001 From: Adam Balogh Date: Wed, 27 Mar 2019 17:43:47 +0000 Subject: [PATCH] scheduler test new behaviour --- .../unit/lib/concurrent/DeterministicSchedulerTests.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/jmock/src/test/java/org/jmock/test/unit/lib/concurrent/DeterministicSchedulerTests.java b/jmock/src/test/java/org/jmock/test/unit/lib/concurrent/DeterministicSchedulerTests.java index cc65e8500..56846dabf 100644 --- a/jmock/src/test/java/org/jmock/test/unit/lib/concurrent/DeterministicSchedulerTests.java +++ b/jmock/src/test/java/org/jmock/test/unit/lib/concurrent/DeterministicSchedulerTests.java @@ -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 {}