From 07cdd615a3b2dd8556836b2f56377779e9a4d7a2 Mon Sep 17 00:00:00 2001 From: Simon Tzanakis Date: Fri, 20 Dec 2024 12:14:14 +0100 Subject: [PATCH] Update mongo in memory version to V5_0 --- .../metis/mongo/embedded/EmbeddedLocalhostMongo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metis-common/metis-common-mongo/src/main/java/eu/europeana/metis/mongo/embedded/EmbeddedLocalhostMongo.java b/metis-common/metis-common-mongo/src/main/java/eu/europeana/metis/mongo/embedded/EmbeddedLocalhostMongo.java index 9fbe17a1a..e5f39cd03 100644 --- a/metis-common/metis-common-mongo/src/main/java/eu/europeana/metis/mongo/embedded/EmbeddedLocalhostMongo.java +++ b/metis-common/metis-common-mongo/src/main/java/eu/europeana/metis/mongo/embedded/EmbeddedLocalhostMongo.java @@ -4,7 +4,7 @@ import de.flapdoodle.embed.mongo.commands.ImmutableMongodArguments; import de.flapdoodle.embed.mongo.commands.MongodArguments; import de.flapdoodle.embed.mongo.config.Net; -import de.flapdoodle.embed.mongo.distribution.Version; +import de.flapdoodle.embed.mongo.distribution.Version.Main; import de.flapdoodle.embed.mongo.transitions.ImmutableMongod; import de.flapdoodle.embed.mongo.transitions.Mongod; import de.flapdoodle.embed.mongo.transitions.RunningMongodProcess; @@ -61,7 +61,7 @@ public void start() { .withProcessOutput(Start.to(ProcessOutput.class).initializedWith(processOutput)) .withMongodArguments(Start.to(MongodArguments.class).initializedWith(mongodArguments)); - runningMongodProcessReachedState = mongod.start(Version.Main.V4_4); + runningMongodProcessReachedState = mongod.start(Main.V5_0); } catch (IOException e) { LOGGER.error("Exception when starting embedded mongo", e);