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

This commit is contained in:
Doroszlai, Attila 2023-04-24 09:17:12 +02:00 committed by GitHub
parent 51dcbd1d61
commit 5b23224970
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -195,10 +195,9 @@ public abstract class AbstractContractRootDirectoryTest extends AbstractFSContra
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)",