Skip to content

Commit c84facd

Browse files
committed
Removed racy assert
1 parent b1c4b20 commit c84facd

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestHttp2StreamResponseTimeout.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
import org.apache.hc.core5.http.URIScheme;
4747
import org.apache.hc.core5.http2.H2StreamTimeoutException;
4848
import org.apache.hc.core5.http2.HttpVersionPolicy;
49-
import org.apache.hc.core5.pool.PoolStats;
5049
import org.apache.hc.core5.util.Timeout;
5150
import org.junit.jupiter.api.Assertions;
5251
import org.junit.jupiter.api.Nested;
@@ -103,9 +102,6 @@ void testResponseTimeout() throws Exception {
103102
final ExecutionException exception = Assertions.assertThrows(ExecutionException.class, () ->
104103
future2.get(TIMEOUT.getDuration(), TIMEOUT.getTimeUnit()));
105104
Assertions.assertInstanceOf(H2StreamTimeoutException.class, exception.getCause());
106-
107-
final PoolStats totalStats = connManager.getTotalStats();
108-
Assertions.assertTrue(totalStats.getAvailable() > 0);
109105
}
110106

111107
}

0 commit comments

Comments
 (0)