Increasing latency in consumer ack tests

This commit is contained in:
Soby Chacko
2022-08-31 15:59:42 -04:00
parent e364dee85a
commit 9330d82792

View File

@@ -174,9 +174,9 @@ class ConsumerAcknowledgmentTests extends AbstractContainerBaseTests {
Thread.sleep(1_000);
// Half of the message get acknowledged, and the other half gets negatively
// acknowledged.
await().atMost(Duration.ofSeconds(10))
await().atMost(Duration.ofSeconds(30))
.untilAsserted(() -> verify(containerConsumer, times(5)).acknowledge(any(Message.class)));
await().atMost(Duration.ofSeconds(10))
await().atMost(Duration.ofSeconds(30))
.untilAsserted(() -> verify(containerConsumer, times(5)).negativeAcknowledge(any(Message.class)));
container.stop();
pulsarClient.close();