Commit 8cf56069 authored by Andy Wilkinson's avatar Andy Wilkinson

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.
parent 90ce4722
......@@ -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
......
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