From ac689f68dec8a7394ef9f3066e381150407f1292 Mon Sep 17 00:00:00 2001 From: Violeta Georgieva Date: Tue, 21 May 2024 12:50:04 +0300 Subject: [PATCH] [test] Increase the timeout for the flaky tests --- .../src/test/java/reactor/netty/http/client/HttpClientTest.java | 2 +- .../test/java/reactor/netty/http/server/HttpServerTests.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reactor-netty-http/src/test/java/reactor/netty/http/client/HttpClientTest.java b/reactor-netty-http/src/test/java/reactor/netty/http/client/HttpClientTest.java index e36b0abaa2..9c25145bba 100644 --- a/reactor-netty-http/src/test/java/reactor/netty/http/client/HttpClientTest.java +++ b/reactor-netty-http/src/test/java/reactor/netty/http/client/HttpClientTest.java @@ -3134,7 +3134,7 @@ private void doTestIssue1697(HttpClient client, boolean hasTimeout, AtomicBoolea .responseContent() .aggregate() .asString() - .block(Duration.ofSeconds(5)); + .block(Duration.ofSeconds(10)); assertThat(response).isEqualTo("testIssue1697"); assertThat(onRequest.get()).isFalse(); diff --git a/reactor-netty-http/src/test/java/reactor/netty/http/server/HttpServerTests.java b/reactor-netty-http/src/test/java/reactor/netty/http/server/HttpServerTests.java index 5092ebcac6..2e3bfb7031 100644 --- a/reactor-netty-http/src/test/java/reactor/netty/http/server/HttpServerTests.java +++ b/reactor-netty-http/src/test/java/reactor/netty/http/server/HttpServerTests.java @@ -2282,7 +2282,7 @@ public void userEventTriggered(ChannelHandlerContext ctx, Object evt) { .aggregate() .as(StepVerifier::create) .expectError() - .verify(Duration.ofSeconds(5)); + .verify(Duration.ofSeconds(10)); StepVerifier.create(error.asMono()) .expectNextMatches(t -> t instanceof SslHandshakeTimeoutException)