slfan1989 commented on code in PR #7733: URL: https://github.com/apache/hadoop/pull/7733#discussion_r2138968853
########## hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestAbandonBlock.java: ########## @@ -100,8 +100,8 @@ public void testAbandonBlock() throws IOException { cluster.restartNameNode(); blocks = dfsclient.getNamenode().getBlockLocations(src, 0, Integer.MAX_VALUE); - Assert.assertEquals("Blocks " + b + " has not been abandoned.", - orginalNumBlocks, blocks.locatedBlockCount() + 1); + Assertions.assertEquals(orginalNumBlocks, blocks.locatedBlockCount() + 1, "Blocks " + Review Comment: We should avoid importing via Assertions.* -- 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: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org