From: Kai Moritz Date: Fri, 1 Sep 2023 17:40:12 +0000 (+0200) Subject: WIP X-Git-Tag: rebase--2023-09-02--10-22~1 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=bc1727e9971a214f8b562f78be3efe7ca9ae2bd3;p=demos%2Fkafka%2Fchat WIP --- diff --git a/src/test/java/de/juplo/kafka/chat/backend/domain/ChatHomeTestBase.java b/src/test/java/de/juplo/kafka/chat/backend/domain/ChatHomeTestBase.java index 4bf11899..3164de56 100644 --- a/src/test/java/de/juplo/kafka/chat/backend/domain/ChatHomeTestBase.java +++ b/src/test/java/de/juplo/kafka/chat/backend/domain/ChatHomeTestBase.java @@ -29,8 +29,8 @@ public class ChatHomeTestBase UUID chatRoomId = UUID.fromString("5c73531c-6fc4-426c-adcb-afc5c140a0f7"); // When - Mono mono = chatHome - .getChatRoom(chatRoomId) + Mono mono = Mono + .defer(() -> chatHome.getChatRoom(chatRoomId)) .log("testGetExistingChatroom") .retryWhen(Retry .backoff(5, Duration.ofSeconds(1)) @@ -48,8 +48,8 @@ public class ChatHomeTestBase UUID chatRoomId = UUID.fromString("7f59ec77-832e-4a17-8d22-55ef46242c17"); // When - Mono mono = chatHome - .getChatRoom(chatRoomId) + Mono mono = Mono + .defer(() -> chatHome.getChatRoom(chatRoomId)) .log("testGetNonExistentChatroom") .retryWhen(Retry .backoff(5, Duration.ofSeconds(1)) diff --git a/src/test/java/de/juplo/kafka/chat/backend/domain/ChatHomeWithShardsTestBase.java b/src/test/java/de/juplo/kafka/chat/backend/domain/ChatHomeWithShardsTestBase.java index 85e187b2..a89da6b9 100644 --- a/src/test/java/de/juplo/kafka/chat/backend/domain/ChatHomeWithShardsTestBase.java +++ b/src/test/java/de/juplo/kafka/chat/backend/domain/ChatHomeWithShardsTestBase.java @@ -26,8 +26,8 @@ public class ChatHomeWithShardsTestBase extends ChatHomeTestBase UUID chatRoomId = UUID.fromString("4e7246a6-29ae-43ea-b56f-669c3481ac19"); // When - Mono mono = chatHome - .getChatRoom(chatRoomId) + Mono mono = Mono + .defer(() -> chatHome.getChatRoom(chatRoomId)) .log("testGetChatroomForNotOwnedShard") .retryWhen(Retry .backoff(5, Duration.ofSeconds(1))