From 5bfb967671a393171924809dbd6a3df42e5c3edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edd=C3=BA=20Mel=C3=A9ndez?= Date: Sat, 16 Mar 2024 13:11:04 -0600 Subject: [PATCH] Remove withReuse in MongoDBAtlasContainer `Reuse Container` is a Testcontainers experimental feature. It requires `testcontainers.reuse.enable=true` in `~/.testcontainers.properties` in order to take effect but in order to avoid surprises, this commit remove it. See https://java.testcontainers.org/features/reuse/ --- .../springframework/ai/vectorstore/MongoDBAtlasContainer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector-stores/spring-ai-mongodb-atlas-store/src/test/java/org/springframework/ai/vectorstore/MongoDBAtlasContainer.java b/vector-stores/spring-ai-mongodb-atlas-store/src/test/java/org/springframework/ai/vectorstore/MongoDBAtlasContainer.java index 2d2dd6aa5de..60dfec22f29 100644 --- a/vector-stores/spring-ai-mongodb-atlas-store/src/test/java/org/springframework/ai/vectorstore/MongoDBAtlasContainer.java +++ b/vector-stores/spring-ai-mongodb-atlas-store/src/test/java/org/springframework/ai/vectorstore/MongoDBAtlasContainer.java @@ -29,7 +29,7 @@ public MongoDBAtlasContainer() { "atlas deployments setup local-test --type local --port 27778 --bindIpAll --username root --password root --force && tail -f /dev/null"); withExposedPorts(27778); waitingFor(Wait.forLogMessage(".*Deployment created!.*\\n", 1)); - withStartupTimeout(Duration.ofMinutes(5)).withReuse(true); + withStartupTimeout(Duration.ofMinutes(5)); } public String getConnectionString() {