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

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 9b3e7c0568 Fix test failures on Windows
9b3e7c0568 is described below

commit 9b3e7c0568bce0f69670ff09a6a98ccf0ae38fb9
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Feb 13 17:46:57 2024 +0000

    Fix test failures on Windows
---
 test/org/apache/coyote/http2/TestHttp2Limits.java | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/test/org/apache/coyote/http2/TestHttp2Limits.java 
b/test/org/apache/coyote/http2/TestHttp2Limits.java
index 5e916528f7..7bb6d19043 100644
--- a/test/org/apache/coyote/http2/TestHttp2Limits.java
+++ b/test/org/apache/coyote/http2/TestHttp2Limits.java
@@ -280,9 +280,17 @@ public class TestHttp2Limits extends Http2TestBase {
             }
             case STREAM_RESET_THEN_CONNECTION_RESET: {
                 // Expect a stream reset
-                parser.readFrame();
-                Assert.assertEquals("3-RST-[11]\n", output.getTrace());
-                output.clearTrace();
+                // On some platform / Connector combinations the TCP 
connection close
+                // will be processed before the client gets a chance to read 
the
+                // connection close frame which will trigger an
+                // IOException when we try to read the frame.
+                try {
+                    parser.readFrame();
+                    Assert.assertEquals("3-RST-[11]\n", output.getTrace());
+                    output.clearTrace();
+                } catch (IOException ioe) {
+                    // Expected on some platforms
+                }
             }
                 //$FALL-THROUGH$
             case CONNECTION_RESET: {


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to