assertion may fail
@@ -234,9 +234,9 @@ public void testTailer() throws Exception {
// Delete & re-create
file.delete();
- final boolean exists = file.exists();
- assertFalse(exists, "File should not exist");
+ assertFalse(file.exists(), "File should not exist");
createFile(file, 0);
+ assertTrue(file.exists(), "File should now exist");
TestUtils.sleep(testDelayMillis);
// Write another line
@@ -255,7 +255,7 @@ public void testTailer() throws Exception {
assertNotNull(listener.exception, "Missing InterruptedException");
assertTrue(listener.exception instanceof InterruptedException, "Unexpected Exception: " + listener.exception);
assertEquals(1 , listener.initialised, "Expected init to be called");
- assertEquals(0 , listener.notFound, "fileNotFound should not be called");
+ // assertEquals(0 , listener.notFound, "fileNotFound should not be called"); // there is a window when it might be called
assertEquals(1 , listener.rotated, "fileRotated should be be called");
}
