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) {
|
||||
ContractTestUtils.assertDeleted(fs, status.getPath(), false, true, false);
|
||||
}
|
||||
FileStatus[] rootListStatus = fs.listStatus(root);
|
||||
assertEquals("listStatus on empty root-directory returned found: "
|
||||
+ join("\n", rootListStatus),
|
||||
0, rootListStatus.length);
|
||||
Assertions.assertThat(fs.listStatus(root))
|
||||
.describedAs("ls /")
|
||||
.hasSize(0);
|
||||
assertNoElements("listFiles(/, false)",
|
||||
fs.listFiles(root, false));
|
||||
assertNoElements("listFiles(/, true)",
|
||||
|
Loading…
Reference in New Issue
Block a user