Skip to content

Commit

Permalink
avoid system.exit during shutdown test
Browse files Browse the repository at this point in the history
  • Loading branch information
sureshanaparti committed Mar 11, 2025
1 parent 06139b9 commit e7c44cf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ public void cancelShutdown() {
@Test
public void triggerShutdown() {
Mockito.doNothing().when(jobManagerMock).disableAsyncJobs();
Mockito.when(spy.isShutdownTriggered()).thenReturn(false);
spy.triggerShutdown();
Mockito.verify(jobManagerMock).disableAsyncJobs();

Expand Down

0 comments on commit e7c44cf

Please sign in to comment.