|
@@ -117,7 +117,7 @@ public class TestAuditLogs {
|
|
int val = istream.read();
|
|
int val = istream.read();
|
|
istream.close();
|
|
istream.close();
|
|
verifyAuditLogs(true);
|
|
verifyAuditLogs(true);
|
|
- assertTrue("failed to read from file", val > 0);
|
|
|
|
|
|
+ assertTrue("failed to read from file", val >= 0);
|
|
}
|
|
}
|
|
|
|
|
|
/** test that allowed stat puts proper entry in audit log */
|
|
/** test that allowed stat puts proper entry in audit log */
|
|
@@ -168,7 +168,7 @@ public class TestAuditLogs {
|
|
istream.close();
|
|
istream.close();
|
|
|
|
|
|
verifyAuditLogsRepeat(true, 3);
|
|
verifyAuditLogsRepeat(true, 3);
|
|
- assertTrue("failed to read from file", val > 0);
|
|
|
|
|
|
+ assertTrue("failed to read from file", val >= 0);
|
|
}
|
|
}
|
|
|
|
|
|
/** test that stat via webhdfs puts proper entry in audit log */
|
|
/** test that stat via webhdfs puts proper entry in audit log */
|