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 ca6976bc79 Fix tests. Stricter host checking rejected port value of "-1" ca6976bc79 is described below commit ca6976bc7963e5bf347dba06bc9f9a1cab690295 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 9dd15841f9..a935aa1580 100644 --- a/test/org/apache/coyote/http2/TestHttp2Section_8_1.java +++ b/test/org/apache/coyote/http2/TestHttp2Section_8_1.java @@ -185,6 +185,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")); @@ -198,6 +200,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")); @@ -406,8 +410,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