You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2022/09/30 15:17:51 UTC

[httpcomponents-client] 01/01: Be more lenient on slower build machines

This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch 5.1.x
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git

commit 6f558ae6bcb05d15b82a31b1187f4ba919fc5f15
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Sep 28 10:36:05 2022 -0400

    Be more lenient on slower build machines
---
 .../hc/client5/testing/async/AbstractHttpAsyncFundamentalsTest.java     | 2 +-
 .../org/apache/hc/client5/testing/async/TestHttpMinimalReactive.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/AbstractHttpAsyncFundamentalsTest.java b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/AbstractHttpAsyncFundamentalsTest.java
index ca7b494d8..b902647ec 100644
--- a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/AbstractHttpAsyncFundamentalsTest.java
+++ b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/AbstractHttpAsyncFundamentalsTest.java
@@ -201,7 +201,7 @@ public abstract class AbstractHttpAsyncFundamentalsTest<T extends CloseableHttpA
             });
         }
 
-        Assert.assertThat(countDownLatch.await(TIMEOUT.getDuration(), TIMEOUT.getTimeUnit()), CoreMatchers.equalTo(true));
+        Assert.assertThat(countDownLatch.await(LONG_TIMEOUT.getDuration(), LONG_TIMEOUT.getTimeUnit()), CoreMatchers.equalTo(true));
 
         executorService.shutdownNow();
         executorService.awaitTermination(TIMEOUT.getDuration(), TIMEOUT.getTimeUnit());
diff --git a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestHttpMinimalReactive.java b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestHttpMinimalReactive.java
index 751349682..56c7aeefb 100644
--- a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestHttpMinimalReactive.java
+++ b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestHttpMinimalReactive.java
@@ -89,7 +89,7 @@ public class TestHttpMinimalReactive extends AbstractHttpReactiveFundamentalsTes
                 .setTlsStrategy(new DefaultClientTlsStrategy(SSLTestContexts.createClientSSLContext()))
                 .build();
         final IOReactorConfig ioReactorConfig = IOReactorConfig.custom()
-                .setSoTimeout(TIMEOUT)
+                .setSoTimeout(LONG_TIMEOUT)
                 .build();
         if (version.greaterEquals(HttpVersion.HTTP_2)) {
             return HttpAsyncClients.createMinimal(