Skip to content

Commit 2852ea0

Browse files
committed
Remove useless version override for MongoDBContainer
Closes gh-23520
1 parent 137f4ec commit 2852ea0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/mongo/DataMongoTestIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
class DataMongoTestIntegrationTests {
4444

4545
@Container
46-
static final MongoDBContainer mongoDB = new MongoDBContainer("mongo:4.0.10").withStartupAttempts(5)
46+
static final MongoDBContainer mongoDB = new MongoDBContainer().withStartupAttempts(5)
4747
.withStartupTimeout(Duration.ofMinutes(5));
4848

4949
@Autowired

spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/mongo/DataMongoTestReactiveIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
class DataMongoTestReactiveIntegrationTests {
4141

4242
@Container
43-
static final MongoDBContainer mongoDB = new MongoDBContainer("mongo:4.0.10").withStartupAttempts(5)
43+
static final MongoDBContainer mongoDB = new MongoDBContainer().withStartupAttempts(5)
4444
.withStartupTimeout(Duration.ofMinutes(5));
4545

4646
@Autowired

spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/mongo/DataMongoTestWithIncludeFilterIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
class DataMongoTestWithIncludeFilterIntegrationTests {
4242

4343
@Container
44-
static final MongoDBContainer mongoDB = new MongoDBContainer("mongo:4.0.10").withStartupAttempts(5)
44+
static final MongoDBContainer mongoDB = new MongoDBContainer().withStartupAttempts(5)
4545
.withStartupTimeout(Duration.ofMinutes(5));
4646

4747
@Autowired

spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/mongo/TransactionalDataMongoTestIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
class TransactionalDataMongoTestIntegrationTests {
4848

4949
@Container
50-
static final MongoDBContainer mongoDB = new MongoDBContainer("mongo:4.0.10").withStartupAttempts(5)
50+
static final MongoDBContainer mongoDB = new MongoDBContainer().withStartupAttempts(5)
5151
.withStartupTimeout(Duration.ofMinutes(5));
5252

5353
@Autowired

0 commit comments

Comments
 (0)