WIP:wait--FIX
authorKai Moritz <kai@juplo.de>
Sun, 25 Feb 2024 08:50:44 +0000 (09:50 +0100)
committerKai Moritz <kai@juplo.de>
Sun, 25 Feb 2024 08:52:02 +0000 (09:52 +0100)
src/test/java/de/juplo/kafka/chat/backend/KafkaHandoverIT.java

index 72f8436..0285646 100644 (file)
@@ -20,6 +20,7 @@ import org.testcontainers.containers.wait.strategy.Wait;
 import org.testcontainers.utility.DockerImageName;
 import reactor.core.publisher.Flux;
 import reactor.core.publisher.Mono;
+import reactor.util.retry.Retry;
 
 import java.io.IOException;
 import java.time.Duration;
@@ -39,6 +40,7 @@ class KafkaHandoverIT extends AbstractHandoverIT
         .mapToObj(i ->sendMessage(chatRoom, user, "Message #" + i))
         .map(result -> result
             .map(MessageTo::toString)
+            .retryWhen(Retry.backoff(10, Duration.ofSeconds(1)))
             .block())
         .forEach(result -> log.info("{}", result));