Skip to content

Commit

Permalink
Start MongoDB 4.4 instead of 4.0
Browse files Browse the repository at this point in the history
It's now impossible to start MongoDB 4.0 on a Fedora 38 so let's move to
a more modern version for our tests.

(cherry picked from commit e915afe)
  • Loading branch information
gsmet committed Oct 17, 2023
1 parent 535b2e2 commit e7c0a9a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static void startMongoDatabase() throws IOException {
String uri = getConfiguredConnectionString();
// This switch allow testing against a running mongo database.
if (uri == null) {
Version.Main version = Version.Main.V4_0;
Version.Main version = Version.Main.V4_4;
int port = 27018;
LOGGER.infof("Starting Mongo %s on port %s", version, port);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static void startMongoDatabase() {

// This switch allow testing against a running mongo database.
if (uri == null) {
startedServers = startReplicaSet(Version.Main.V4_0, 27018, "test001");
startedServers = startReplicaSet(Version.Main.V4_4, 27018, "test001");
} else {
LOGGER.infof("Using existing Mongo %s", uri);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static void startMongoDatabase() throws IOException {
String uri = getConfiguredConnectionString();
// This switch allow testing against a running mongo database.
if (uri == null) {
Version.Main version = Version.Main.V4_0;
Version.Main version = Version.Main.V4_4;
int port = 27018;
LOGGER.infof("Starting Mongo %s on port %s", version, port);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static void startMongoDatabase() {

// This switch allow testing against a running mongo database.
if (uri == null) {
startedServers = startReplicaSet(Version.Main.V4_0, 27018, "test001");
startedServers = startReplicaSet(Version.Main.V4_4, 27018, "test001");
} else {
LOGGER.infof("Using existing Mongo %s", uri);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static IFeatureAwareVersion version(Map<String, String> initArgs) {
return versionArg.<IFeatureAwareVersion> map(Version.Main::valueOf)
.orElseGet(() -> versionArg.map(
versionStr -> Versions.withFeatures(de.flapdoodle.embed.process.distribution.Version.of(versionStr)))
.orElse(Version.Main.V4_0));
.orElse(Version.Main.V4_4));
}

public static void forceExtendedSocketOptionsClassInit() {
Expand Down

0 comments on commit e7c0a9a

Please sign in to comment.