HDFS-4055. TestAuditLogs is flaky. Contributed by Binglin Chang

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1399094 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eli Collins 2012-10-17 04:39:28 +00:00
parent 32d3e4e9f5
commit c21eece8d2
2 changed files with 4 additions and 2 deletions

View File

@ -124,6 +124,8 @@ Release 2.0.3-alpha - Unreleased
HDFS-3997. OfflineImageViewer incorrectly passes value of imageVersion when HDFS-3997. OfflineImageViewer incorrectly passes value of imageVersion when
visiting IS_COMPRESSED element. (Mithun Radhakrishnan via atm) visiting IS_COMPRESSED element. (Mithun Radhakrishnan via atm)
HDFS-4055. TestAuditLogs is flaky. (Binglin Chang via eli)
Release 2.0.2-alpha - 2012-09-07 Release 2.0.2-alpha - 2012-09-07
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -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 */