HADOOP-18714. Wrong StringUtils.join() called in AbstractContractRootDirectoryTest (#5578)
This commit is contained in:
parent
51dcbd1d61
commit
5b23224970
@ -195,10 +195,9 @@ public void testListEmptyRootDirectory() throws IOException {
|
|||||||
for (FileStatus status : statuses) {
|
for (FileStatus status : statuses) {
|
||||||
ContractTestUtils.assertDeleted(fs, status.getPath(), false, true, false);
|
ContractTestUtils.assertDeleted(fs, status.getPath(), false, true, false);
|
||||||
}
|
}
|
||||||
FileStatus[] rootListStatus = fs.listStatus(root);
|
Assertions.assertThat(fs.listStatus(root))
|
||||||
assertEquals("listStatus on empty root-directory returned found: "
|
.describedAs("ls /")
|
||||||
+ join("\n", rootListStatus),
|
.hasSize(0);
|
||||||
0, rootListStatus.length);
|
|
||||||
assertNoElements("listFiles(/, false)",
|
assertNoElements("listFiles(/, false)",
|
||||||
fs.listFiles(root, false));
|
fs.listFiles(root, false));
|
||||||
assertNoElements("listFiles(/, true)",
|
assertNoElements("listFiles(/, true)",
|
||||||
|
Loading…
Reference in New Issue
Block a user