Skip to content

Commit

Permalink
increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
sullis committed Dec 27, 2024
1 parent d652cb1 commit 4393988
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ private static AsyncHttpClient createClient() {
AsyncHttpClientConfig config = new DefaultAsyncHttpClientConfig.Builder()
.setEnableAutomaticDecompression(true)
.setCompressionEnforced(true)
.setReadTimeout(Duration.ofMinutes(8))
.setRequestTimeout(Duration.ofMinutes(8))
.setReadTimeout(Duration.ofMinutes(15))
.setRequestTimeout(Duration.ofMinutes(15))
.setConnectTimeout(Duration.ofSeconds(1))
.build();
return new DefaultAsyncHttpClient(config);
Expand Down Expand Up @@ -90,7 +90,7 @@ static void stopServer() {
}

@Test
@Timeout(value = 8, unit = TimeUnit.MINUTES)
@Timeout(value = 15, unit = TimeUnit.MINUTES)
void handleLargeResponse() throws Throwable {
AtomicInteger status = new AtomicInteger(-1);
AtomicLong bytesReceived = new AtomicLong();
Expand Down Expand Up @@ -135,7 +135,7 @@ public void onThrowable(Throwable t) {
}
});

future.get(8, TimeUnit.MINUTES);
future.get(15, TimeUnit.MINUTES);

assertEquals(200, status.get());
assertEquals(0, throwableCount.get());
Expand Down

0 comments on commit 4393988

Please sign in to comment.