kaijchen commented on code in PR #3927:
URL: https://github.com/apache/ozone/pull/3927#discussion_r1013773345
##########
hadoop-ozone/recon/src/test/java/org/apache/hadoop/ozone/recon/spi/impl/TestOzoneManagerServiceProviderImpl.java:
##########
@@ -201,8 +203,8 @@ public void testGetOzoneManagerDBSnapshot() throws
Exception {
.getOzoneManagerDBSnapshot();
assertNotNull(checkpoint);
assertTrue(checkpoint.getCheckpointLocation().toFile().isDirectory());
- assertTrue(checkpoint.getCheckpointLocation().toFile()
- .listFiles().length == 2);
+ assertEquals(2, Objects.requireNonNull(checkpoint.
Review Comment:
It's better to use 2 separate assertions here, AssertNotNull and
AssertEquals.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]