Skip to content

Commit 713ef8d

Browse files
committed
Making RabbitMQ test less flaky
1 parent 60155ab commit 713ef8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apm-agent-plugins/apm-rabbitmq/apm-rabbitmq-spring/src/test/java/co/elastic/apm/agent/rabbitmq/AbstractAsyncRabbitMqTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void verifyThatTransactionWithSpanCreated() throws TimeoutException {
4747
logger.info("Trying to send to async rabbit template");
4848
ListenableFuture<String> future = asyncRabbitTemplate.convertSendAndReceive(TOPIC_EXCHANGE_NAME, TestConstants.ROUTING_KEY, MESSAGE);
4949
try {
50-
String response = future.get(500, TimeUnit.MILLISECONDS);
50+
String response = future.get(5, TimeUnit.SECONDS);
5151
logger.info("Got response = {}", response);
5252
} catch (ExecutionException | InterruptedException e) {
5353
logger.error("Got exception", e);

0 commit comments

Comments
 (0)