Skip to content

Commit

Permalink
finally fixed this dumb thing
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed Feb 4, 2024
1 parent 7746bc5 commit da0308a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/org/myrobotlab/service/RandomTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void testService() throws Exception {
// disable one method - leave other enabled
random.disable("clock.startClock");
clock.stopClock();
clock.setInterval(999999);
clock.setInterval(9999);
sleep(200);
assertTrue("clock should not be started 3", !clock.isClockRunning());
assertTrue(String.format("random method 2 should be %d => 5000 values", clock.getInterval()), 5000 <= clock.getInterval());
Expand All @@ -83,9 +83,9 @@ public void testService() throws Exception {
// disable all
random.disable();
sleep(200);
clock.setInterval(999999);
clock.setInterval(9999);
assertTrue("clock should not be started 4", !clock.isClockRunning());
assertEquals(999999, (long)clock.getInterval());
assertEquals(9999, (long)clock.getInterval());

// re-enable all that were previously enabled but not explicitly disabled ones
random.enable();
Expand Down

0 comments on commit da0308a

Please sign in to comment.