Browse Source

Remove containers after use in Docker Compose integration tests

Closes gh-36104
pull/36168/head
Andy Wilkinson 3 years ago
parent
commit
3ef1738a5e
  1. 1
      spring-boot-project/spring-boot-docker-compose/src/test/java/org/springframework/boot/docker/compose/service/connection/test/AbstractDockerComposeIntegrationTests.java

1
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 { @@ -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);
}

Loading…
Cancel
Save