FIX
authorKai Moritz <kai@juplo.de>
Sun, 18 Feb 2024 19:14:07 +0000 (20:14 +0100)
committerKai Moritz <kai@juplo.de>
Sun, 18 Feb 2024 19:26:05 +0000 (20:26 +0100)
src/test/java/de/juplo/kafka/chat/backend/AbstractConfigurationIT.java
src/test/java/de/juplo/kafka/chat/backend/InMemoryWithFilesAndShardingConfigurationIT.java

index 41618e5..21605bc 100644 (file)
@@ -9,6 +9,7 @@ import org.junit.jupiter.api.Test;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.test.web.server.LocalServerPort;
 import org.springframework.http.MediaType;
+import org.springframework.test.annotation.DirtiesContext;
 import org.springframework.test.web.reactive.server.WebTestClient;
 import org.testcontainers.shaded.org.awaitility.Awaitility;
 
@@ -22,6 +23,7 @@ import static org.hamcrest.Matchers.endsWith;
 
 
 @Slf4j
+@DirtiesContext
 public abstract class AbstractConfigurationIT
 {
   final static String EXISTING_CHATROOM = "5c73531c-6fc4-426c-adcb-afc5c140a0f7";
index c6d0194..fd2866b 100644 (file)
@@ -1,7 +1,6 @@
 package de.juplo.kafka.chat.backend;
 
 import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.test.annotation.DirtiesContext;
 
 
 @SpringBootTest(
@@ -12,7 +11,6 @@ import org.springframework.test.annotation.DirtiesContext;
         "chat.backend.inmemory.sharding-strategy=kafkalike",
         "chat.backend.inmemory.num-shards=10",
         "chat.backend.inmemory.owned-shards=2" })
-@DirtiesContext
 class InMemoryWithFilesAndShardingConfigurationIT extends AbstractConfigurationWithShardingIT
 {
 }