WIP:wait--FIX
authorKai Moritz <kai@juplo.de>
Sun, 25 Feb 2024 08:46:57 +0000 (09:46 +0100)
committerKai Moritz <kai@juplo.de>
Sun, 25 Feb 2024 08:46:57 +0000 (09:46 +0100)
src/test/java/de/juplo/kafka/chat/backend/KafkaHandoverIT.java

index b84d540..72f8436 100644 (file)
@@ -36,7 +36,11 @@ class KafkaHandoverIT extends AbstractHandoverIT
     User user = new User("nerd");
     IntStream
         .rangeClosed(1,100)
-        .forEach(i ->sendMessage(chatRoom, user, "Message #" + i));
+        .mapToObj(i ->sendMessage(chatRoom, user, "Message #" + i))
+        .map(result -> result
+            .map(MessageTo::toString)
+            .block())
+        .forEach(result -> log.info("{}", result));
 
     Thread.sleep(10000);
     receiveMessage(chatRoom).subscribe(message -> log.info("message: {}", message));
@@ -101,7 +105,8 @@ class KafkaHandoverIT extends AbstractHandoverIT
             "/{chatRoomId}",
             chatRoom.getId())
         .accept(MediaType.APPLICATION_OCTET_STREAM)
-        .retrieve().bodyToFlux(byte[].class);
+        .retrieve()
+        .bodyToFlux(byte[].class);
   }
 
   @BeforeEach