test: `StorageStrategy`-IT are restoring instead of recreating
[demos/kafka/chat] / src / main / java / de / juplo / kafka / chat / backend / implementation / inmemory / SimpleChatHomeService.java
index 5c3fe2e..371d4a8 100644 (file)
@@ -49,6 +49,9 @@ public class SimpleChatHomeService implements ChatHomeService
 
   Mono<Void> restore(StorageStrategy storageStrategy)
   {
+    chatRoomInfo.clear();
+    chatRoomData.clear();
+
     return storageStrategy
         .readChatRoomInfo()
         .filter(info ->