From 5277424b12f669ac6b0e8f1ba0514f6c34e6c36f Mon Sep 17 00:00:00 2001 From: chanikag Date: Thu, 9 Nov 2023 10:38:45 +0530 Subject: [PATCH] Fix intermittent test failure $subject --- .../test/EI1622JMSInboundMessagePollingConsumerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration/mediation-tests/tests-patches/src/test/java/org/wso2/carbon/esb/jms/transport/test/EI1622JMSInboundMessagePollingConsumerTest.java b/integration/mediation-tests/tests-patches/src/test/java/org/wso2/carbon/esb/jms/transport/test/EI1622JMSInboundMessagePollingConsumerTest.java index 8d4c6c8ba4..2967be5bc2 100644 --- a/integration/mediation-tests/tests-patches/src/test/java/org/wso2/carbon/esb/jms/transport/test/EI1622JMSInboundMessagePollingConsumerTest.java +++ b/integration/mediation-tests/tests-patches/src/test/java/org/wso2/carbon/esb/jms/transport/test/EI1622JMSInboundMessagePollingConsumerTest.java @@ -50,7 +50,7 @@ public void testPollingWithSuspensionLimit() throws Exception { pushMessageToQue(addEndpoint()); assertTrue(Utils.checkForLog(carbonLogReader, "Suspending polling as the pollingSuspensionLimit of 2 " - + "reached. Polling will be re-started after 3000 milliseconds", DEFAULT_TIMEOUT), + + "reached. Polling will be re-started after 3000 milliseconds", 180), "JMS Polling suspension is not enabled."); Utils.undeploySynapseConfiguration(ENDPOINT_NAME, Utils.ArtifactType.INBOUND_ENDPOINT.getDirName(), false); } @@ -61,7 +61,7 @@ public void testPollingWithSuspensionLimitAsZero() throws Exception { pushMessageToQue(addEndpointWithSuspensionLimitZero()); - assertTrue(Utils.checkForLog(carbonLogReader, "Polling is suspended permanently", DEFAULT_TIMEOUT), + assertTrue(Utils.checkForLog(carbonLogReader, "Polling is suspended permanently", 180), "JMS Polling is not permanently suspended though the suspension limit is 0."); Utils.undeploySynapseConfiguration(ENDPOINT_NAME, Utils.ArtifactType.INBOUND_ENDPOINT.getDirName(), false); }