Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0fe7e38

Browse files
committed
increase timeout
1 parent4981f6c commit0fe7e38

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎client/src/test/java/org/asynchttpclient/LargeResponseTest.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ private static AsyncHttpClient createClient() {
5252
AsyncHttpClientConfigconfig =newDefaultAsyncHttpClientConfig.Builder()
5353
.setEnableAutomaticDecompression(true)
5454
.setCompressionEnforced(true)
55-
.setReadTimeout(Duration.ofMinutes(8))
56-
.setRequestTimeout(Duration.ofMinutes(8))
55+
.setReadTimeout(Duration.ofMinutes(15))
56+
.setRequestTimeout(Duration.ofMinutes(15))
5757
.setConnectTimeout(Duration.ofSeconds(1))
5858
.build();
5959
returnnewDefaultAsyncHttpClient(config);
@@ -90,7 +90,7 @@ static void stopServer() {
9090
}
9191

9292
@Test
93-
@Timeout(value =8,unit =TimeUnit.MINUTES)
93+
@Timeout(value =15,unit =TimeUnit.MINUTES)
9494
voidhandleLargeResponse()throwsThrowable {
9595
AtomicIntegerstatus =newAtomicInteger(-1);
9696
AtomicLongbytesReceived =newAtomicLong();
@@ -135,7 +135,7 @@ public void onThrowable(Throwable t) {
135135
}
136136
});
137137

138-
future.get(8,TimeUnit.MINUTES);
138+
future.get(15,TimeUnit.MINUTES);
139139

140140
assertEquals(200,status.get());
141141
assertEquals(0,throwableCount.get());

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp