From 60a75e3799e67c549cc92cf0a320c5fe81c9f8cd Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 21 Dec 2022 22:26:19 -0800 Subject: [PATCH] Increase timeout for ApplicationRunner task --- .../springframework/boot/build/docs/ApplicationRunner.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/java/org/springframework/boot/build/docs/ApplicationRunner.java b/buildSrc/src/main/java/org/springframework/boot/build/docs/ApplicationRunner.java index ba2f59ddde..1895bfde8b 100644 --- a/buildSrc/src/main/java/org/springframework/boot/build/docs/ApplicationRunner.java +++ b/buildSrc/src/main/java/org/springframework/boot/build/docs/ApplicationRunner.java @@ -132,7 +132,7 @@ public class ApplicationRunner extends DefaultTask { } private void awaitLogging(Process process) { - long end = System.currentTimeMillis() + 30000; + long end = System.currentTimeMillis() + 60000; String expectedLogging = this.expectedLogging.get(); List outputLines = Collections.emptyList(); while (System.currentTimeMillis() < end) { @@ -147,7 +147,7 @@ public class ApplicationRunner extends DefaultTask { } } 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()); }