From 0a863ce6896edc85fa0b91e3216e075912e61331 Mon Sep 17 00:00:00 2001 From: chanikag Date: Tue, 7 Nov 2023 09:47:57 +0530 Subject: [PATCH] Fix testMessageProcessorCronForwader intermittent failures Fix intermittent test failure --- .../carbon/esb/jms/transport/test/MSMPCronForwarderCase.java | 1 + 1 file changed, 1 insertion(+) diff --git a/integration/mediation-tests/tests-transport/src/test/java/org/wso2/carbon/esb/jms/transport/test/MSMPCronForwarderCase.java b/integration/mediation-tests/tests-transport/src/test/java/org/wso2/carbon/esb/jms/transport/test/MSMPCronForwarderCase.java index e35ead591e..0a652bed65 100644 --- a/integration/mediation-tests/tests-transport/src/test/java/org/wso2/carbon/esb/jms/transport/test/MSMPCronForwarderCase.java +++ b/integration/mediation-tests/tests-transport/src/test/java/org/wso2/carbon/esb/jms/transport/test/MSMPCronForwarderCase.java @@ -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)); }