Skip to content

Commit ab165f7

Browse files
committed
Oops, need to check for equality
1 parent aa43f4f commit ab165f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/org/apache/commons/io/FileUtilsWaitForTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void testWaitFor5Absent() {
6363
final long start = System.currentTimeMillis();
6464
assertFalse(FileUtils.waitFor(NOSUCHFILE, 2));
6565
final long elapsed = System.currentTimeMillis() - start;
66-
assertTrue(elapsed > 2000, "Must reach timeout - expected 2000, actual: " + elapsed);
66+
assertTrue(elapsed >= 2000, "Must reach timeout - expected 2000, actual: " + elapsed);
6767
}
6868

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

9494
@Test

0 commit comments

Comments
 (0)