test: HandoverIT-POC - Fixed illegal client-naming (one character only)
authorKai Moritz <kai@juplo.de>
Wed, 28 Feb 2024 21:43:28 +0000 (22:43 +0100)
committerKai Moritz <kai@juplo.de>
Wed, 28 Feb 2024 21:52:02 +0000 (22:52 +0100)
src/test/java/de/juplo/kafka/chat/backend/AbstractHandoverIT.java

index 743b9bb..b67a2db 100644 (file)
@@ -43,12 +43,12 @@ public abstract class AbstractHandoverIT
   {
     ChatRoomInfoTo[] chatRooms = Flux
         .range(0, NUM_CHATROOMS)
-        .flatMap(i -> createChatRoom("#" + i))
+        .flatMap(i -> createChatRoom("room-" + i))
         .toStream()
         .toArray(size -> new ChatRoomInfoTo[size]);
 
     TestClient[] testClients = Flux
-        .fromStream(IntStream.range(0, NUM_CLIENTS).mapToObj(i -> Integer.toString(i)))
+        .fromStream(IntStream.range(0, NUM_CLIENTS).mapToObj(i -> "user-" + Integer.toString(i)))
         .map(i -> new TestClient(
             containers.haproxy.getMappedPort(8400),
             chatRooms,