From d6cf55bba0083fc0a076003f1a3e9b2868c72668 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 2 Mar 2024 09:26:18 +0100 Subject: [PATCH] WIP --- .../java/de/juplo/kafka/chat/backend/AbstractHandoverIT.java | 2 ++ src/test/java/de/juplo/kafka/chat/backend/TestListener.java | 1 + src/test/java/de/juplo/kafka/chat/backend/TestWriter.java | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) 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; -- 2.20.1