wzhallright commented on code in PR #5850:
URL: https://github.com/apache/ozone/pull/5850#discussion_r1435055922
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerPrepare.java:
##########
@@ -296,10 +297,8 @@ public void testPrepareWithMultipleThreads() throws
Exception {
.anyMatch((vol) -> vol.getName().equals(volumeName)));
} catch (ExecutionException ex) {
Throwable cause = ex.getCause();
- assertTrue(cause instanceof OMException);
- assertEquals(
- NOT_SUPPORTED_OPERATION_WHEN_PREPARED,
- ((OMException) cause).getResult());
+ OMException cause = assertInstanceOf(OMException.class, cause);
Review Comment:
I noticed that too. I just had some issues with my local development
environment, so I overlooked this error, fixed now.Thanks for suggestion.fixed
now
--
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]