This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push: new f6ce45c3e9 Fix tests. Stricter host checking rejected port value of "-1" f6ce45c3e9 is described below commit f6ce45c3e9788320f3c1bd164a61ead1452fcad3 Author: Mark Thomas <ma...@apache.org> AuthorDate: Mon Aug 8 20:30:50 2022 +0100 Fix tests. Stricter host checking rejected port value of "-1" --- test/org/apache/coyote/http2/TestHttp2Section_8_1.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/org/apache/coyote/http2/TestHttp2Section_8_1.java b/test/org/apache/coyote/http2/TestHttp2Section_8_1.java index 4dca8550fe..981bf20c5b 100644 --- a/test/org/apache/coyote/http2/TestHttp2Section_8_1.java +++ b/test/org/apache/coyote/http2/TestHttp2Section_8_1.java @@ -186,6 +186,8 @@ public class TestHttp2Section_8_1 extends Http2TestBase { @Test public void testUndefinedPseudoHeader() throws Exception { + http2Connect(); + List<Header> headers = new ArrayList<>(5); headers.add(new Header(":method", "GET")); headers.add(new Header(":scheme", "http")); @@ -199,6 +201,8 @@ public class TestHttp2Section_8_1 extends Http2TestBase { @Test public void testInvalidPseudoHeader() throws Exception { + http2Connect(); + List<Header> headers = new ArrayList<>(5); headers.add(new Header(":method", "GET")); headers.add(new Header(":scheme", "http")); @@ -407,8 +411,6 @@ public class TestHttp2Section_8_1 extends Http2TestBase { private void doInvalidPseudoHeaderTest(List<Header> headers) throws Exception { - http2Connect(); - byte[] headersFrameHeader = new byte[9]; ByteBuffer headersPayload = ByteBuffer.allocate(128); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org