From: Kai Moritz Date: Tue, 20 Feb 2024 12:05:21 +0000 (+0100) Subject: FIX:MONGODB_PORT X-Git-Tag: rebase--2024-02-20--15-07~2 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=e37ffaba0caac990b0b09f1a97f0923f068f68b5;p=demos%2Fkafka%2Fchat FIX:MONGODB_PORT --- 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