WIP:FIX
authorKai Moritz <kai@juplo.de>
Sun, 25 Feb 2024 19:42:59 +0000 (20:42 +0100)
committerKai Moritz <kai@juplo.de>
Sun, 25 Feb 2024 19:42:59 +0000 (20:42 +0100)
src/test/java/de/juplo/kafka/chat/backend/KafkaHandoverIT.java

index cc5039e..e681997 100644 (file)
@@ -45,7 +45,7 @@ class KafkaHandoverIT extends AbstractHandoverIT
         .forEach(result -> log.info("{}", result));
 
     Thread.sleep(10000);
-    receiveMessage(chatRoom).subscribe(message -> log.info("message: {}", message));
+    receiveMessages(chatRoom).subscribe(message -> log.info("message: {}", message));
 
     Thread.sleep(1000000);
   }
@@ -99,12 +99,12 @@ class KafkaHandoverIT extends AbstractHandoverIT
         });
   }
 
-  Flux<byte[]> receiveMessage(ChatRoomInfoTo chatRoom)
+  Flux<byte[]> receiveMessages(ChatRoomInfoTo chatRoom)
   {
     return webClient
         .get()
         .uri(
-            "/{chatRoomId}",
+            "/{chatRoomId}/listen",
             chatRoom.getId())
         .accept(MediaType.APPLICATION_OCTET_STREAM)
         .retrieve()