From 3ef1738a5e412adafb2f1bc06368d790104ff471 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 28 Jun 2023 14:11:37 +0100 Subject: [PATCH] Remove containers after use in Docker Compose integration tests Closes gh-36104 --- .../connection/test/AbstractDockerComposeIntegrationTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-boot-project/spring-boot-docker-compose/src/test/java/org/springframework/boot/docker/compose/service/connection/test/AbstractDockerComposeIntegrationTests.java b/spring-boot-project/spring-boot-docker-compose/src/test/java/org/springframework/boot/docker/compose/service/connection/test/AbstractDockerComposeIntegrationTests.java index f142ba86df..d59742b863 100644 --- a/spring-boot-project/spring-boot-docker-compose/src/test/java/org/springframework/boot/docker/compose/service/connection/test/AbstractDockerComposeIntegrationTests.java +++ b/spring-boot-project/spring-boot-docker-compose/src/test/java/org/springframework/boot/docker/compose/service/connection/test/AbstractDockerComposeIntegrationTests.java @@ -58,6 +58,7 @@ public abstract class AbstractDockerComposeIntegrationTests { properties.put("spring.docker.compose.skip.in-tests", "false"); properties.put("spring.docker.compose.file", ThrowingSupplier.of(this.composeResource::getFile).get().getAbsolutePath()); + properties.put("spring.docker.compose.stop.command", "down"); application.setDefaultProperties(properties); return application.run().getBean(type); }