HDFS-13557. TestDFSAdmin#testListOpenFiles fails on Windows. Contributed by Anbang Hu.

(cherry picked from commit 6b67161ca3)
This commit is contained in:
Inigo Goiri 2018-05-16 09:31:46 -07:00
parent 79b2a508e0
commit 5310542fb4
1 changed files with 4 additions and 2 deletions

View File

@ -813,12 +813,14 @@ public class TestDFSAdmin {
if (closedFileSet != null) {
for (Path closedFilePath : closedFileSet) {
assertThat(outStr,
not(containsString(closedFilePath.toString() + "\n")));
not(containsString(closedFilePath.toString() +
System.lineSeparator())));
}
}
for (Path openFilePath : openFilesMap.keySet()) {
assertThat(outStr, is(containsString(openFilePath.toString() + "\n")));
assertThat(outStr, is(containsString(openFilePath.toString() +
System.lineSeparator())));
}
}