adoroszlai commented on code in PR #5850:
URL: https://github.com/apache/ozone/pull/5850#discussion_r1435049096
##########
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:
Sorry, I made a mistake in the previous suggestion.
```suggestion
OMException cause = assertInstanceOf(OMException.class,
ex.getCause());
```
--
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]