From b9ee545c78954e2b171515a806e95f04f52f6033 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 7 Sep 2020 16:07:58 +0100 Subject: [PATCH] Improve robustness of DeploymentIntegrationTests Closes gh-23207 --- .../src/intTest/java/sample/DeploymentIntegrationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-tests/spring-boot-deployment-tests/src/intTest/java/sample/DeploymentIntegrationTests.java b/spring-boot-tests/spring-boot-deployment-tests/src/intTest/java/sample/DeploymentIntegrationTests.java index 262d15c26d0..1be595e9631 100644 --- a/spring-boot-tests/spring-boot-deployment-tests/src/intTest/java/sample/DeploymentIntegrationTests.java +++ b/spring-boot-tests/spring-boot-deployment-tests/src/intTest/java/sample/DeploymentIntegrationTests.java @@ -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() {