Skip to content

Commit

Permalink
code clean.
Browse files Browse the repository at this point in the history
  • Loading branch information
horizonzy committed Jul 15, 2024
1 parent 2934bc6 commit 7995b51
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void testOomExit() {
.outOfMemoryPolicy(OutOfMemoryPolicy.ThrowException)
.exitOnOutOfMemory(true)
.build();

MockedStatic<ShutdownUtil> mockedStatic = mockStatic(ShutdownUtil.class);

try {
Expand All @@ -111,7 +111,7 @@ public void testOomExit() {
// Expected
assertEquals(outOfDirectMemException, e);
}

mockedStatic.verify(() -> ShutdownUtil.triggerImmediateForcefulShutdown(), Mockito.times(1));
}

Expand Down

0 comments on commit 7995b51

Please sign in to comment.