Skip to content

Commit be24006

Browse files
committed
fix compile error
1 parent 8491b60 commit be24006

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerPrepare.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,7 @@ public void testPrepareWithMultipleThreads() throws Exception {
296296
.stream()
297297
.anyMatch((vol) -> vol.getName().equals(volumeName)));
298298
} catch (ExecutionException ex) {
299-
Throwable cause = ex.getCause();
300-
OMException cause = assertInstanceOf(OMException.class, cause);
299+
OMException cause = assertInstanceOf(OMException.class, ex.getCause());
301300
assertEquals(NOT_SUPPORTED_OPERATION_WHEN_PREPARED, cause.getResult());
302301
}
303302
}

0 commit comments

Comments
 (0)