Improve robustness of DeploymentIntegrationTests

Closes gh-23207
This commit is contained in:
Andy Wilkinson 2020-09-07 16:07:58 +01:00
parent 52859303fe
commit b9ee545c78

View File

@ -138,7 +138,7 @@ class DeploymentIntegrationTests {
super(new ImageFromDockerfile().withFileFromFile("spring-boot.war", findWarToDeploy())
.withDockerfileFromBuilder((builder) -> builder.from(baseImage)
.add("spring-boot.war", deploymentLocation + "/spring-boot.war").build()));
withExposedPorts(port).withStartupTimeout(Duration.ofMinutes(10));
withExposedPorts(port).withStartupTimeout(Duration.ofMinutes(5)).withStartupAttempts(3);
}
private static File findWarToDeploy() {