Skip to content

Commit 7dc129a

Browse files
committed
GH-1296: Fix Race in Test
1 parent 69ec278 commit 7dc129a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spring-rabbit/src/test/java/org/springframework/amqp/rabbit/listener/DirectMessageListenerContainerIntegrationTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,8 @@ else if (event instanceof AsyncConsumerStartedEvent) {
701701
latch.countDown();
702702
}
703703
});
704+
container.setMonitorInterval(500);
705+
container.setFailedDeclarationRetryInterval(500);
704706
container.afterPropertiesSet();
705707
container.start();
706708
assertTrue(latch.await(10, TimeUnit.SECONDS));

0 commit comments

Comments
 (0)