diff --git a/apm-agent-plugins/apm-jms-plugin/src/test/java/co/elastic/apm/agent/jms/JmsInstrumentationIT.java b/apm-agent-plugins/apm-jms-plugin/src/test/java/co/elastic/apm/agent/jms/JmsInstrumentationIT.java index 6e5aa0e633..4865ffac58 100644 --- a/apm-agent-plugins/apm-jms-plugin/src/test/java/co/elastic/apm/agent/jms/JmsInstrumentationIT.java +++ b/apm-agent-plugins/apm-jms-plugin/src/test/java/co/elastic/apm/agent/jms/JmsInstrumentationIT.java @@ -141,7 +141,7 @@ private void testQueueSendReceiveOnTracedThread(Callable receiveMethod, String message = UUID.randomUUID().toString(); Message outgoingMessage = brokerFacade.createTextMessage(message); brokerFacade.send(queue, outgoingMessage); - Message incomingMessage = receiveOnTracedThread(receiveMethod).get(1, TimeUnit.SECONDS); + Message incomingMessage = receiveOnTracedThread(receiveMethod).get(3, TimeUnit.SECONDS); verifyMessage(message, incomingMessage); List spans = reporter.getSpans(); @@ -168,7 +168,7 @@ private void testQueueSendReceiveOnNonTracedThread(Callable receiveMeth String message = UUID.randomUUID().toString(); Message outgoingMessage = brokerFacade.createTextMessage(message); brokerFacade.send(queue, outgoingMessage); - Message incomingMessage = receiveOnNonTracedThread(receiveMethod).get(1, TimeUnit.SECONDS); + Message incomingMessage = receiveOnNonTracedThread(receiveMethod).get(3, TimeUnit.SECONDS); verifyMessage(message, incomingMessage); verifySendReceiveOnNonTracedThread(queue.getQueueName(), 1); } @@ -228,7 +228,7 @@ private void testQueueSendListen(Function