This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push: new c861392b8f Fix test failures on Windows c861392b8f is described below commit c861392b8f1698527d9fc4461ee92f4bcce5b6f0 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