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 2026/07/24 05:35:35 UTC

(httpcomponents-client) branch master updated: Increased test timeout to reduce the chance of test failure in CI

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 9816640dd Increased test timeout to reduce the chance of test failure in CI
9816640dd is described below

commit 9816640dd004ebf8e122c32f000ed4d413c2d7ab
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Fri Jul 24 07:27:31 2026 +0200

    Increased test timeout to reduce the chance of test failure in CI
---
 .../hc/client5/testing/async/TestAsyncConnectionManagement.java       | 4 ++--
 .../org/apache/hc/client5/testing/sync/TestConnectionManagement.java  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestAsyncConnectionManagement.java b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestAsyncConnectionManagement.java
index b44df5d5c..c83e55dfb 100644
--- a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestAsyncConnectionManagement.java
+++ b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestAsyncConnectionManagement.java
@@ -264,7 +264,7 @@ void testCloseExpiredTTLConnections() throws Exception {
                 .setPoolConcurrencyPolicy(PoolConcurrencyPolicy.STRICT)
                 .setConnPoolPolicy(PoolReusePolicy.LIFO)
                 .setDefaultConnectionConfig(ConnectionConfig.custom()
-                        .setTimeToLive(TimeValue.ofMilliseconds(100))
+                        .setTimeToLive(TimeValue.ofMilliseconds(500))
                         .build())
                 .build();
         configureClient(builder -> builder.setConnectionManager(connManager));
@@ -297,7 +297,7 @@ void testCloseExpiredTTLConnections() throws Exception {
         Assertions.assertEquals(1, connManager.getTotalStats().getAvailable());
         Assertions.assertEquals(1, connManager.getStats(route).getAvailable());
 
-        Thread.sleep(150);
+        Thread.sleep(600);
 
         connManager.closeExpired();
 
diff --git a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/sync/TestConnectionManagement.java b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/sync/TestConnectionManagement.java
index d58e3595d..240bf8570 100644
--- a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/sync/TestConnectionManagement.java
+++ b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/sync/TestConnectionManagement.java
@@ -309,7 +309,7 @@ void testCloseExpiredTTLConnections() throws Exception {
                         .setPoolConcurrencyPolicy(PoolConcurrencyPolicy.STRICT)
                         .setConnPoolPolicy(PoolReusePolicy.LIFO)
                         .setDefaultConnectionConfig(ConnectionConfig.custom()
-                                .setTimeToLive(TimeValue.ofMilliseconds(100))
+                                .setTimeToLive(TimeValue.ofMilliseconds(500))
                                 .build())
                         .build();
         connManager.setMaxTotal(1);
@@ -336,7 +336,7 @@ void testCloseExpiredTTLConnections() throws Exception {
         Assertions.assertEquals(1, connManager.getTotalStats().getAvailable());
         Assertions.assertEquals(1, connManager.getStats(route).getAvailable());
 
-        Thread.sleep(150);
+        Thread.sleep(600);
 
         connManager.closeExpired();