Skip to content

Commit

Permalink
Oops, need to check for equality
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Jul 27, 2024
1 parent aa43f4f commit ab165f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/org/apache/commons/io/FileUtilsWaitForTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void testWaitFor5Absent() {
final long start = System.currentTimeMillis();
assertFalse(FileUtils.waitFor(NOSUCHFILE, 2));
final long elapsed = System.currentTimeMillis() - start;
assertTrue(elapsed > 2000, "Must reach timeout - expected 2000, actual: " + elapsed);
assertTrue(elapsed >= 2000, "Must reach timeout - expected 2000, actual: " + elapsed);
}

@Test
Expand All @@ -88,7 +88,7 @@ public void testIO_488() throws InterruptedException {
thread1.join();
assertTrue(wasInterrupted.get(), "Should have been interrupted");
final long elapsed = System.currentTimeMillis() - start;
assertTrue(elapsed > seconds*1000, "Should wait for n seconds, actual: " + elapsed);
assertTrue(elapsed >= seconds*1000, "Should wait for n seconds, actual: " + elapsed);
}

@Test
Expand Down

0 comments on commit ab165f7

Please sign in to comment.