WIP
authorKai Moritz <kai@juplo.de>
Sat, 2 Mar 2024 08:26:18 +0000 (09:26 +0100)
committerKai Moritz <kai@juplo.de>
Sat, 2 Mar 2024 08:26:18 +0000 (09:26 +0100)
src/test/java/de/juplo/kafka/chat/backend/AbstractHandoverIT.java
src/test/java/de/juplo/kafka/chat/backend/TestListener.java
src/test/java/de/juplo/kafka/chat/backend/TestWriter.java

index 261290a..87b1770 100644 (file)
@@ -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<ChatRoomInfoTo> createChatRoom(String name)
index e94dfcb..3f282ee 100644 (file)
@@ -54,6 +54,7 @@ public class TestListener
               .take(30);
         })
         .takeUntil(message -> !running)
+        .doOnComplete(() -> log.info("TestListener is done"))
         .parallel()
         .runOn(Schedulers.parallel())
         .then();
index 9253ede..ab3713c 100644 (file)
@@ -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<MessageTo> sentMessages = new LinkedList<>();
 
   volatile boolean running = true;