We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8491b60 commit be24006Copy full SHA for be24006
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerPrepare.java
@@ -296,8 +296,7 @@ public void testPrepareWithMultipleThreads() throws Exception {
296
.stream()
297
.anyMatch((vol) -> vol.getName().equals(volumeName)));
298
} catch (ExecutionException ex) {
299
- Throwable cause = ex.getCause();
300
- OMException cause = assertInstanceOf(OMException.class, cause);
+ OMException cause = assertInstanceOf(OMException.class, ex.getCause());
301
assertEquals(NOT_SUPPORTED_OPERATION_WHEN_PREPARED, cause.getResult());
302
}
303
0 commit comments