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/28 08:38:53 UTC

(httpcomponents-client) branch master updated: Removed racy assert

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 c84facd02 Removed racy assert
c84facd02 is described below

commit c84facd020dccbe5644a8a1b50e18d84bc88da87
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Tue Jul 28 10:34:57 2026 +0200

    Removed racy assert
---
 .../hc/client5/testing/async/TestHttp2StreamResponseTimeout.java      | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestHttp2StreamResponseTimeout.java b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestHttp2StreamResponseTimeout.java
index ba1c6d0f1..0a876a6fe 100644
--- a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestHttp2StreamResponseTimeout.java
+++ b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestHttp2StreamResponseTimeout.java
@@ -46,7 +46,6 @@
 import org.apache.hc.core5.http.URIScheme;
 import org.apache.hc.core5.http2.H2StreamTimeoutException;
 import org.apache.hc.core5.http2.HttpVersionPolicy;
-import org.apache.hc.core5.pool.PoolStats;
 import org.apache.hc.core5.util.Timeout;
 import org.junit.jupiter.api.Assertions;
 import org.junit.jupiter.api.Nested;
@@ -103,9 +102,6 @@ void testResponseTimeout() throws Exception {
         final ExecutionException exception = Assertions.assertThrows(ExecutionException.class, () ->
                 future2.get(TIMEOUT.getDuration(), TIMEOUT.getTimeUnit()));
         Assertions.assertInstanceOf(H2StreamTimeoutException.class, exception.getCause());
-
-        final PoolStats totalStats = connManager.getTotalStats();
-        Assertions.assertTrue(totalStats.getAvailable() > 0);
     }
 
 }