Skip to content

Commit

Permalink
Stabilize test
Browse files Browse the repository at this point in the history
  • Loading branch information
LEDfan committed Jun 20, 2024
1 parent bf1889b commit e4bfb45
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void testFastDelay() {
return false;
}, 3_000);
long time = Duration.between(start, Instant.now()).toMillis();
Assertions.assertTrue(time > 3_000);
Assertions.assertTrue(time >= 3_000);
Assertions.assertTrue(time < 5_000);
Assertions.assertEquals(11, called.get());
}
Expand All @@ -71,7 +71,7 @@ public void testSlowDelay() {
return false;
}, 10_000);
long time = Duration.between(start, Instant.now()).toMillis();
Assertions.assertTrue(time > 10_000);
Assertions.assertTrue(time >= 10_000);
Assertions.assertTrue(time < 12_000);
Assertions.assertEquals(15, called.get());
}
Expand Down

0 comments on commit e4bfb45

Please sign in to comment.