From 8cf56069d212aa0fe4f99d178e784c7aafb99fd7 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 12 May 2020 22:24:17 +0100 Subject: [PATCH] Allow more time for shutdown result callback to be received 5 seconds isn't always sufficient, particularly on CI where the timing can be quite variable. --- .../reactive/server/AbstractReactiveWebServerFactoryTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/reactive/server/AbstractReactiveWebServerFactoryTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/reactive/server/AbstractReactiveWebServerFactoryTests.java index 337d422a0df..cfea2834085 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/reactive/server/AbstractReactiveWebServerFactoryTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/reactive/server/AbstractReactiveWebServerFactoryTests.java @@ -380,7 +380,7 @@ public abstract class AbstractReactiveWebServerFactoryTests { assertThat(responseReference.get()).isNull(); blockingHandler.completeOne(); assertThat(responseLatch.await(5, TimeUnit.SECONDS)).isTrue(); - Awaitility.await().atMost(Duration.ofSeconds(5)).until(() -> GracefulShutdownResult.IDLE == result.get()); + Awaitility.await().atMost(Duration.ofSeconds(30)).until(() -> GracefulShutdownResult.IDLE == result.get()); } @Test