chinmay-bhat commented on code in PR #9367: URL: https://github.com/apache/iceberg/pull/9367#discussion_r1435535518
########## spark/v3.5/spark/src/test/java/org/apache/iceberg/spark/actions/TestRemoveOrphanFilesAction.java: ########## @@ -139,36 +138,43 @@ public void testDryRun() throws IOException, InterruptedException { .filter(FileStatus::isFile) .map(file -> file.getPath().toString()) .collect(Collectors.toList()); - Assert.assertEquals("Should be 3 files", 3, allFiles.size()); + assertThat(allFiles).as("Should be 3 valid files").hasSize(3); List<String> invalidFiles = Lists.newArrayList(allFiles); invalidFiles.removeAll(validFiles); - Assert.assertEquals("Should be 1 invalid file", 1, invalidFiles.size()); + assertThat(invalidFiles).as("Should be 1 invalid files").hasSize(1); Review Comment: ok! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org