You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2024/07/27 23:04:04 UTC
(commons-io) branch master updated: Oops, need to check for equality
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push:
new ab165f7b7 Oops, need to check for equality
ab165f7b7 is described below
commit ab165f7b7f24074faccb2e54feba617e9fc21f15
Author: Sebb <se...@apache.org>
AuthorDate: Sun Jul 28 00:03:56 2024 +0100
Oops, need to check for equality
---
src/test/java/org/apache/commons/io/FileUtilsWaitForTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/commons/io/FileUtilsWaitForTest.java b/src/test/java/org/apache/commons/io/FileUtilsWaitForTest.java
index f5e2ee51c..f206c8504 100644
--- a/src/test/java/org/apache/commons/io/FileUtilsWaitForTest.java
+++ b/src/test/java/org/apache/commons/io/FileUtilsWaitForTest.java
@@ -63,7 +63,7 @@ public class FileUtilsWaitForTest {
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
@@ -88,7 +88,7 @@ public class FileUtilsWaitForTest {
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