From: Kai Moritz Date: Sat, 2 Mar 2024 08:26:18 +0000 (+0100) Subject: WIP X-Git-Tag: rebase--2024-03-03--11-38~6 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=d6cf55bba0083fc0a076003f1a3e9b2868c72668;p=demos%2Fkafka%2Fchat WIP --- diff --git a/src/test/java/de/juplo/kafka/chat/backend/AbstractHandoverIT.java b/src/test/java/de/juplo/kafka/chat/backend/AbstractHandoverIT.java index 261290a2..87b17705 100644 --- a/src/test/java/de/juplo/kafka/chat/backend/AbstractHandoverIT.java +++ b/src/test/java/de/juplo/kafka/chat/backend/AbstractHandoverIT.java @@ -68,10 +68,12 @@ public abstract class AbstractHandoverIT { testWriters[i].running = false; testWriterFutures[i].join(); + log.info("Joined TestWriter {}", testWriters[i]); } testListener.running = false; testListenerFuture.join(); + log.info("Joined TestListener"); } Mono createChatRoom(String name) diff --git a/src/test/java/de/juplo/kafka/chat/backend/TestListener.java b/src/test/java/de/juplo/kafka/chat/backend/TestListener.java index e94dfcbc..3f282eef 100644 --- a/src/test/java/de/juplo/kafka/chat/backend/TestListener.java +++ b/src/test/java/de/juplo/kafka/chat/backend/TestListener.java @@ -54,6 +54,7 @@ public class TestListener .take(30); }) .takeUntil(message -> !running) + .doOnComplete(() -> log.info("TestListener is done")) .parallel() .runOn(Schedulers.parallel()) .then(); diff --git a/src/test/java/de/juplo/kafka/chat/backend/TestWriter.java b/src/test/java/de/juplo/kafka/chat/backend/TestWriter.java index 9253ede8..ab3713cb 100644 --- a/src/test/java/de/juplo/kafka/chat/backend/TestWriter.java +++ b/src/test/java/de/juplo/kafka/chat/backend/TestWriter.java @@ -64,6 +64,7 @@ public class TestWriter e.getResponseBodyAsString(Charset.defaultCharset())); }) .takeUntil(message -> !running) + .doOnComplete(() -> log.info("TestWriter {} is done", user)) .parallel() .runOn(Schedulers.parallel()) .then(); @@ -99,8 +100,8 @@ public class TestWriter private final WebClient webClient; private final ChatRoomInfoTo chatRoom; - private final User user; + final User user; final List sentMessages = new LinkedList<>(); volatile boolean running = true;