WIP
authorKai Moritz <kai@juplo.de>
Fri, 1 Mar 2024 19:44:32 +0000 (20:44 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 1 Mar 2024 19:44:32 +0000 (20:44 +0100)
src/test/java/de/juplo/kafka/chat/backend/AbstractHandoverIT.java
src/test/java/de/juplo/kafka/chat/backend/TestWriter.java

index 0047ff0..261290a 100644 (file)
@@ -61,7 +61,8 @@ public abstract class AbstractHandoverIT
         .run()
         .toFuture();
 
-    Thread.sleep(10000);
+    log.info("Sleepint for 3 seconds...");
+    Thread.sleep(3000);
 
     for (int i = 0; i < NUM_CLIENTS; i++)
     {
index 5c6f7ab..9253ede 100644 (file)
@@ -63,6 +63,7 @@ public class TestWriter
               user,
               e.getResponseBodyAsString(Charset.defaultCharset()));
         })
+        .takeUntil(message -> !running)
         .parallel()
         .runOn(Schedulers.parallel())
         .then();