WIP:poc-setup
authorKai Moritz <kai@juplo.de>
Mon, 26 Feb 2024 14:13:51 +0000 (15:13 +0100)
committerKai Moritz <kai@juplo.de>
Mon, 26 Feb 2024 14:13:51 +0000 (15:13 +0100)
src/test/java/de/juplo/kafka/chat/backend/KafkaHandoverIT.java

index 35e261c..92306c7 100644 (file)
@@ -46,7 +46,13 @@ class KafkaHandoverIT extends AbstractHandoverIT
             .block())
         .forEach(result -> log.info("{}", result));
 
-    receiveMessages(chatRoom).subscribe(message -> log.info("message: {}", message));
+    Long count = receiveMessages(chatRoom)
+        .doOnNext(message -> log.info("message: {}", message))
+        .count()
+        .block();
+    log.info("Received {} messages", count);
+
+    Thread.sleep(1000);
   }
 
   Mono<ChatRoomInfoTo> createChatRoom(String name)