FIX:MONGODB_PORT
authorKai Moritz <kai@juplo.de>
Tue, 20 Feb 2024 12:05:21 +0000 (13:05 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 20 Feb 2024 12:05:21 +0000 (13:05 +0100)
src/test/java/de/juplo/kafka/chat/backend/InMemoryWithMongoDbConfigurationIT.java

index 6937736..c7ede36 100644 (file)
@@ -37,7 +37,7 @@ class InMemoryWithMongoDbConfigurationIT extends AbstractConfigurationIT
        @DynamicPropertySource
        static void addMongoPortProperty(DynamicPropertyRegistry registry)
        {
-               registry.add("spring.data.mongodb.port", () -> CONTAINER.getMappedPort(27017));
+               registry.add("spring.data.mongodb.port", () -> CONTAINER.getMappedPort(MONGODB_PORT));
        }
 
        @BeforeEach