Skip to content

Commit 8cf5606

Browse files
committed
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.
1 parent 90ce472 commit 8cf5606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/reactive/server/AbstractReactiveWebServerFactoryTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ void whenARequestRemainsInFlightThenShutDownGracefullyDoesNotInvokeCallbackUntil
380380
assertThat(responseReference.get()).isNull();
381381
blockingHandler.completeOne();
382382
assertThat(responseLatch.await(5, TimeUnit.SECONDS)).isTrue();
383-
Awaitility.await().atMost(Duration.ofSeconds(5)).until(() -> GracefulShutdownResult.IDLE == result.get());
383+
Awaitility.await().atMost(Duration.ofSeconds(30)).until(() -> GracefulShutdownResult.IDLE == result.get());
384384
}
385385

386386
@Test

0 commit comments

Comments
 (0)