WIP:test: HandoverIT-POC - Excuting the Flu...
authorKai Moritz <kai@juplo.de>
Fri, 22 Mar 2024 16:35:13 +0000 (17:35 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 22 Mar 2024 16:35:13 +0000 (17:35 +0100)
src/test/java/de/juplo/kafka/chat/backend/TestWriter.java

index fd33941..717a0f0 100644 (file)
@@ -41,9 +41,9 @@ public class TestWriter
             return i++;
           }
         })
-        .delayElements(Duration.ofMillis(ThreadLocalRandom.current().nextLong(500, 1500)))
         .map(i -> "Message #" + i)
         .flatMap(message -> sendMessage(chatRoom, message)
+            .delayElement(Duration.ofMillis(ThreadLocalRandom.current().nextLong(500, 1500)))
             .retryWhen(Retry.fixedDelay(10, Duration.ofSeconds(1))))
         .doOnNext(message ->
         {