Commit d133f228 authored by Andy Wilkinson's avatar Andy Wilkinson

Increase wait times in DevToolsIntegrationTests

See gh-22909
parent a149edcf
...@@ -65,7 +65,7 @@ abstract class AbstractDevToolsIntegrationTests { ...@@ -65,7 +65,7 @@ abstract class AbstractDevToolsIntegrationTests {
} }
protected int awaitServerPort() throws Exception { protected int awaitServerPort() throws Exception {
int port = Awaitility.waitAtMost(Duration.ofSeconds(30)) int port = Awaitility.waitAtMost(Duration.ofMinutes(3))
.until(() -> new ApplicationState(this.serverPortFile, this.launchedApplication), .until(() -> new ApplicationState(this.serverPortFile, this.launchedApplication),
ApplicationState::hasServerPort) ApplicationState::hasServerPort)
.getServerPort(); .getServerPort();
......
...@@ -101,7 +101,7 @@ abstract class RemoteApplicationLauncher extends AbstractApplicationLauncher { ...@@ -101,7 +101,7 @@ abstract class RemoteApplicationLauncher extends AbstractApplicationLauncher {
} }
private int awaitServerPort(LaunchedJvm jvm, File serverPortFile) throws Exception { private int awaitServerPort(LaunchedJvm jvm, File serverPortFile) throws Exception {
return Awaitility.waitAtMost(Duration.ofSeconds(60)) return Awaitility.waitAtMost(Duration.ofMinutes(3))
.until(() -> new ApplicationState(serverPortFile, jvm), ApplicationState::hasServerPort) .until(() -> new ApplicationState(serverPortFile, jvm), ApplicationState::hasServerPort)
.getServerPort(); .getServerPort();
} }
...@@ -109,7 +109,7 @@ abstract class RemoteApplicationLauncher extends AbstractApplicationLauncher { ...@@ -109,7 +109,7 @@ abstract class RemoteApplicationLauncher extends AbstractApplicationLauncher {
private void awaitRemoteSpringApplication(LaunchedJvm launchedJvm) throws Exception { private void awaitRemoteSpringApplication(LaunchedJvm launchedJvm) throws Exception {
FileContents contents = new FileContents(launchedJvm.getStandardOut()); FileContents contents = new FileContents(launchedJvm.getStandardOut());
try { try {
Awaitility.waitAtMost(Duration.ofSeconds(30)).until(contents::get, Awaitility.waitAtMost(Duration.ofMinutes(3)).until(contents::get,
containsString("Started RemoteSpringApplication")); containsString("Started RemoteSpringApplication"));
} }
catch (ConditionTimeoutException ex) { catch (ConditionTimeoutException ex) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment