From 1442b1ce682a39670b9110f1df78c93db17b63e1 Mon Sep 17 00:00:00 2001 From: aasawariMongoDB <103485554+aasawariMongoDB@users.noreply.github.com> Date: Wed, 17 Jul 2024 09:42:32 +0530 Subject: [PATCH] Add test compatibility against MongoDB 7 (#8868) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: EddĂș MelĂ©ndez Gonzales --- .../org/testcontainers/containers/MongoDBContainerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mongodb/src/test/java/org/testcontainers/containers/MongoDBContainerTest.java b/modules/mongodb/src/test/java/org/testcontainers/containers/MongoDBContainerTest.java index c801dad5378..8952c6802e6 100644 --- a/modules/mongodb/src/test/java/org/testcontainers/containers/MongoDBContainerTest.java +++ b/modules/mongodb/src/test/java/org/testcontainers/containers/MongoDBContainerTest.java @@ -24,8 +24,8 @@ public void shouldExecuteTransactions() { } @Test - public void supportsMongoDB_4_4() { - try (final MongoDBContainer mongoDBContainer = new MongoDBContainer("mongo:4.4")) { + public void supportsMongoDB_7_0() { + try (final MongoDBContainer mongoDBContainer = new MongoDBContainer("mongo:7.0")) { mongoDBContainer.start(); } }