HADOOP-18714. Wrong StringUtils.join() called in AbstractContractRootDirectoryTest (#5588)

(cherry picked from commit 5b23224970)
This commit is contained in:
Doroszlai, Attila 2023-04-24 15:49:20 +02:00 committed by GitHub
parent 1ea5fbd192
commit 13d3cfd311
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)",