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 @@ private void verifyLog(String expected) throws IOException {
|
||||
assertTrue(lines.size() != 0);
|
||||
assertTrue(expected.equalsIgnoreCase(lines.get(0)));
|
||||
//empty the file
|
||||
lines.remove(0);
|
||||
lines.clear();
|
||||
FileUtils.writeLines(file, lines, false);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user