HDFS-13557. TestDFSAdmin#testListOpenFiles fails on Windows. Contributed by Anbang Hu.
(cherry picked from commit 6b67161ca33881d5f3d7606a57786e9c960759a1)
This commit is contained in:
parent
79b2a508e0
commit
5310542fb4
@ -813,12 +813,14 @@ private void verifyOpenFilesListing(HashSet<Path> closedFileSet,
|
|||||||
if (closedFileSet != null) {
|
if (closedFileSet != null) {
|
||||||
for (Path closedFilePath : closedFileSet) {
|
for (Path closedFilePath : closedFileSet) {
|
||||||
assertThat(outStr,
|
assertThat(outStr,
|
||||||
not(containsString(closedFilePath.toString() + "\n")));
|
not(containsString(closedFilePath.toString() +
|
||||||
|
System.lineSeparator())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Path openFilePath : openFilesMap.keySet()) {
|
for (Path openFilePath : openFilesMap.keySet()) {
|
||||||
assertThat(outStr, is(containsString(openFilePath.toString() + "\n")));
|
assertThat(outStr, is(containsString(openFilePath.toString() +
|
||||||
|
System.lineSeparator())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user