Skip to content

Commit 91d61cb

Browse files
committed
Wait for recovery accordingly in test
References #38
1 parent 0bb1db3 commit 91d61cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/rabbitmq/stream/impl/StreamConsumerTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ void externalOffsetTrackingWithSubscriptionListener() throws Exception {
560560
assertThat(offsetTracking.get()).isGreaterThanOrEqualTo(messageCount - 1);
561561

562562
Host.killConnection("rabbitmq-stream-consumer");
563-
waitAtMost(RECOVERY_DELAY.multipliedBy(2), () -> subscriptionListenerCallCount.get() == 2);
563+
waitAtMost(recoveryInitialDelay.multipliedBy(2), () -> subscriptionListenerCallCount.get() == 2);
564564

565565
publish.run();
566566
waitAtMost(5, () -> receivedMessages.get() == messageCount * 2);

0 commit comments

Comments
 (0)