HDDS-1886. Use ArrayList#clear to address audit failure scenario
Signed-off-by: Anu Engineer <aengineer@apache.org>
This commit is contained in:
parent
2ac029b949
commit
689a80d3ce
|
@ -153,7 +153,7 @@ public class TestOzoneAuditLogger {
|
||||||
assertTrue(lines.size() != 0);
|
assertTrue(lines.size() != 0);
|
||||||
assertTrue(expected.equalsIgnoreCase(lines.get(0)));
|
assertTrue(expected.equalsIgnoreCase(lines.get(0)));
|
||||||
//empty the file
|
//empty the file
|
||||||
lines.remove(0);
|
lines.clear();
|
||||||
FileUtils.writeLines(file, lines, false);
|
FileUtils.writeLines(file, lines, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue