From e37ffaba0caac990b0b09f1a97f0923f068f68b5 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 20 Feb 2024 13:05:21 +0100 Subject: [PATCH] FIX:MONGODB_PORT --- .../kafka/chat/backend/InMemoryWithMongoDbConfigurationIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/de/juplo/kafka/chat/backend/InMemoryWithMongoDbConfigurationIT.java b/src/test/java/de/juplo/kafka/chat/backend/InMemoryWithMongoDbConfigurationIT.java index 69377369..c7ede36b 100644 --- a/src/test/java/de/juplo/kafka/chat/backend/InMemoryWithMongoDbConfigurationIT.java +++ b/src/test/java/de/juplo/kafka/chat/backend/InMemoryWithMongoDbConfigurationIT.java @@ -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 -- 2.20.1