From f88ebf75cdb56f13e4792b2536781abee51ee45d Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 25 Sep 2018 16:44:38 -0400 Subject: [PATCH] Use Mongo 3.5.5 by default with Embedded mongo Closes gh-14476 --- .../autoconfigure/mongo/embedded/EmbeddedMongoProperties.java | 2 +- .../mongo/embedded/EmbeddedMongoAutoConfigurationTests.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/embedded/EmbeddedMongoProperties.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/embedded/EmbeddedMongoProperties.java index bc40d48ef9..4582fa5ed5 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/embedded/EmbeddedMongoProperties.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/embedded/EmbeddedMongoProperties.java @@ -38,7 +38,7 @@ public class EmbeddedMongoProperties { /** * Version of Mongo to use. */ - private String version = "3.6.5"; + private String version = "3.5.5"; private final Storage storage = new Storage(); diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mongo/embedded/EmbeddedMongoAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mongo/embedded/EmbeddedMongoAutoConfigurationTests.java index 36354ebd4c..e61566c74c 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mongo/embedded/EmbeddedMongoAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mongo/embedded/EmbeddedMongoAutoConfigurationTests.java @@ -60,12 +60,12 @@ public class EmbeddedMongoAutoConfigurationTests { @Test public void defaultVersion() { - assertVersionConfiguration(null, "3.6.5"); + assertVersionConfiguration(null, "3.5.5"); } @Test public void customVersion() { - assertVersionConfiguration("3.6.3", "3.6.3"); + assertVersionConfiguration("3.4.15", "3.4.15"); } @Test