Skip to content

Commit 3ef1738

Browse files
committed
Remove containers after use in Docker Compose integration tests
Closes gh-36104
1 parent ba8b171 commit 3ef1738

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: spring-boot-project/spring-boot-docker-compose/src/test/java/org/springframework/boot/docker/compose/service/connection/test/AbstractDockerComposeIntegrationTests.java

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ protected final <T extends ConnectionDetails> T run(Class<T> type) {
5858
properties.put("spring.docker.compose.skip.in-tests", "false");
5959
properties.put("spring.docker.compose.file",
6060
ThrowingSupplier.of(this.composeResource::getFile).get().getAbsolutePath());
61+
properties.put("spring.docker.compose.stop.command", "down");
6162
application.setDefaultProperties(properties);
6263
return application.run().getBean(type);
6364
}

0 commit comments

Comments
 (0)