Skip to content

Commit

Permalink
improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenSammi committed Sep 19, 2023
1 parent c17d62f commit 079e520
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,12 @@ public void testPostProcessingCheck() throws Exception {
() -> logs.getOutput().contains("isPostProcessing is true for"),
100, 20000);

GenericTestUtils.waitFor(
() -> logs.getOutput().contains("isPostProcessing is false"),
100, 20000);
doNothing().when(statefulServiceStateManager)
.deleteConfiguration(Mockito.anyString());
GenericTestUtils.waitFor(
() -> logs.getOutput().contains("isPostProcessing is false") &&
logs.getOutput().contains("Stateful configuration is deleted"),
100, 20000);
verify(statefulServiceStateManager, times(1))
.deleteConfiguration(Mockito.anyString());
}
Expand Down

0 comments on commit 079e520

Please sign in to comment.