Skip to content

Commit 87c5e53

Browse files
committed
Improved test that was failing on windows
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1721368 13f79535-47bb-0310-9956-ffa450edef68
1 parent b384380 commit 87c5e53

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/test/java/org/apache/commons/io/input/TailerTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ public void testTailerEndOfFileReached() throws Exception {
290290
write(file, "line7", "line8", "line9");
291291
TestUtils.sleep(testDelayMillis);
292292

293-
assertEquals("end of file reached 3 times", 3, listener.reachedEndOfFile);
293+
// May be > 3 times due to underlying OS behaviour wrt streams
294+
assertTrue("end of file reached at least 3 times", listener.reachedEndOfFile >= 3);
294295
}
295296

296297
protected void createFile(final File file, final long size)

0 commit comments

Comments
 (0)