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

View File

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