mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Remove containers after use in Docker Compose integration tests
Closes gh-36104
This commit is contained in:
parent
ba8b1717fb
commit
3ef1738a5e
@ -58,6 +58,7 @@ public abstract class AbstractDockerComposeIntegrationTests {
|
|||||||
properties.put("spring.docker.compose.skip.in-tests", "false");
|
properties.put("spring.docker.compose.skip.in-tests", "false");
|
||||||
properties.put("spring.docker.compose.file",
|
properties.put("spring.docker.compose.file",
|
||||||
ThrowingSupplier.of(this.composeResource::getFile).get().getAbsolutePath());
|
ThrowingSupplier.of(this.composeResource::getFile).get().getAbsolutePath());
|
||||||
|
properties.put("spring.docker.compose.stop.command", "down");
|
||||||
application.setDefaultProperties(properties);
|
application.setDefaultProperties(properties);
|
||||||
return application.run().getBean(type);
|
return application.run().getBean(type);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user