projects
/
demos
/
kafka
/
chat
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2f5400
)
WIP:wait--FIX
author
Kai Moritz
<kai@juplo.de>
Sun, 25 Feb 2024 08:50:44 +0000
(09:50 +0100)
committer
Kai 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
patch
|
blob
|
history
diff --git
a/src/test/java/de/juplo/kafka/chat/backend/KafkaHandoverIT.java
b/src/test/java/de/juplo/kafka/chat/backend/KafkaHandoverIT.java
index
72f8436
..
0285646
100644
(file)
--- a/
src/test/java/de/juplo/kafka/chat/backend/KafkaHandoverIT.java
+++ b/
src/test/java/de/juplo/kafka/chat/backend/KafkaHandoverIT.java
@@
-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));