This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push: new be906e2fe8 Fix test failures on Windows be906e2fe8 is described below commit be906e2fe8fcd2be2ef7bbeba0c7883824aaa6a4 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 7b891fbfff..b184270dc3 100644 --- a/test/org/apache/coyote/http2/TestHttp2Limits.java +++ b/test/org/apache/coyote/http2/TestHttp2Limits.java @@ -281,9 +281,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