From b2f5400a4d18b59f017db1fc0c827152c33056ae Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 25 Feb 2024 09:46:57 +0100 Subject: [PATCH] WIP:wait--FIX --- .../de/juplo/kafka/chat/backend/KafkaHandoverIT.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/test/java/de/juplo/kafka/chat/backend/KafkaHandoverIT.java b/src/test/java/de/juplo/kafka/chat/backend/KafkaHandoverIT.java index b84d540e..72f8436a 100644 --- a/src/test/java/de/juplo/kafka/chat/backend/KafkaHandoverIT.java +++ b/src/test/java/de/juplo/kafka/chat/backend/KafkaHandoverIT.java @@ -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 -- 2.20.1