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/10/02 14:32:29 UTC

[httpcomponents-core] 05/05: Removed racy assert in #testPrematureResponse

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

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

commit 912683c0c204c546fb8137cbb72aaa5b0d718506
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Sat Oct 1 18:23:22 2022 +0200

    Removed racy assert in #testPrematureResponse
---
 .../test/java/org/apache/hc/core5/testing/nio/Http1IntegrationTest.java | 2 --
 1 file changed, 2 deletions(-)

diff --git a/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http1IntegrationTest.java b/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http1IntegrationTest.java
index fd6633fc5..664a05906 100644
--- a/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http1IntegrationTest.java
+++ b/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/nio/Http1IntegrationTest.java
@@ -1048,8 +1048,6 @@ public class Http1IntegrationTest extends InternalHttp1ServerTestBase {
         Assertions.assertNotNull(response1);
         Assertions.assertEquals(HttpStatus.SC_UNAUTHORIZED, response1.getCode());
         Assertions.assertNotNull("You shall not pass", result1.getBody());
-
-        Assertions.assertFalse(streamEndpoint.isOpen());
     }
 
     @Test