diff --git a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/sync/TestSSLSocketFactory.java b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/sync/TestSSLSocketFactory.java index a83ad5420..bfc4b6757 100644 --- a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/sync/TestSSLSocketFactory.java +++ b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/sync/TestSSLSocketFactory.java @@ -219,6 +219,7 @@ public class TestSSLSocketFactory { Assert.assertNotNull(sslsession); Assert.assertTrue(hostVerifier.isFired()); + sslSocket.getInputStream().read(); } } }