Skip to content

Commit

Permalink
Increase timeout for ApplicationRunner task
Browse files Browse the repository at this point in the history
  • Loading branch information
philwebb committed Dec 22, 2022
1 parent 5ba52d0 commit 60a75e3
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -132,7 +132,7 @@ void runApplication() throws IOException {
}

private void awaitLogging(Process process) {
long end = System.currentTimeMillis() + 30000;
long end = System.currentTimeMillis() + 60000;
String expectedLogging = this.expectedLogging.get();
List<String> outputLines = Collections.emptyList();
while (System.currentTimeMillis() < end) {
Expand All @@ -147,7 +147,7 @@ private void awaitLogging(Process process) {
}
}
StringBuilder message = new StringBuilder(
"After 30 seconds '" + expectedLogging + "' had not be logged in the following output:\n\n");
"After 60 seconds '" + expectedLogging + "' had not be logged in the following output:\n\n");
outputLines.forEach((line) -> message.append(line).append("\n"));
throw new IllegalStateException(message.toString());
}
Expand Down

0 comments on commit 60a75e3

Please sign in to comment.