Skip to content

Commit

Permalink
Fix testMessageProcessorCronForwader intermittent failures
Browse files Browse the repository at this point in the history
Fix intermittent test failure
  • Loading branch information
chanikag committed Nov 7, 2023
1 parent 63c069b commit 0a863ce
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public void testMessageProcessorCronForwader() throws Exception {
assertEquals(response4.getResponseCode(), 202, "ESB failed to send 202 even after setting FORCE_SC_ACCEPTED");

// WAIT FOR THE MESSAGE PROCESSOR TO TRIGGER
Thread.sleep(60000);
Awaitility.await().pollInterval(50, TimeUnit.MILLISECONDS).atMost(60, TimeUnit.SECONDS).until(isLogWritten());
assertTrue(carbonLogReader.checkForLog("Jack", 60, NUMBER_OF_MESSAGES));
}
Expand Down

0 comments on commit 0a863ce

Please sign in to comment.