diff --git a/src/test/java/eu/openanalytics/containerproxy/test/unit/RetryingTest.java b/src/test/java/eu/openanalytics/containerproxy/test/unit/RetryingTest.java index 125f9004..a6f2f402 100644 --- a/src/test/java/eu/openanalytics/containerproxy/test/unit/RetryingTest.java +++ b/src/test/java/eu/openanalytics/containerproxy/test/unit/RetryingTest.java @@ -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()); } @@ -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()); }