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
commit 3887ec9b40c51c85e1a964070b4d57978eee4f9d Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Mar 11 16:37:19 2021 +0000 A little more test alignment --- test/org/apache/coyote/http2/Http2TestBase.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/org/apache/coyote/http2/Http2TestBase.java b/test/org/apache/coyote/http2/Http2TestBase.java index 6db8263..332a2f7 100644 --- a/test/org/apache/coyote/http2/Http2TestBase.java +++ b/test/org/apache/coyote/http2/Http2TestBase.java @@ -50,6 +50,7 @@ import org.apache.coyote.http2.HpackDecoder.HeaderEmitter; import org.apache.coyote.http2.Http2Parser.Input; import org.apache.coyote.http2.Http2Parser.Output; import org.apache.tomcat.util.codec.binary.Base64; +import org.apache.tomcat.util.compat.JrePlatform; import org.apache.tomcat.util.http.FastHttpDateFormat; import org.apache.tomcat.util.http.MimeHeaders; import org.apache.tomcat.util.net.TesterSupport; @@ -58,8 +59,14 @@ import org.apache.tomcat.util.net.TesterSupport; * Tests for compliance with the <a href="https://tools.ietf.org/html/rfc7540"> * HTTP/2 specification</a>. */ +@org.junit.runner.RunWith(org.junit.runners.Parameterized.class) public abstract class Http2TestBase extends TomcatBaseTest { + @org.junit.runners.Parameterized.Parameters + public static Object[][] data() { + return new Object[Integer.getInteger("tomcat.test.http2.loopCount", 1).intValue()][0]; + } + // Nothing special about this date apart from it being the date I ran the // test that demonstrated that most HTTP/2 tests were failing because the // response now included a date header @@ -941,7 +948,7 @@ public abstract class Http2TestBase extends TomcatBaseTest { connector.getProtocolHandlerClassName().contains("Nio2")); Assume.assumeTrue("This test is only expected to trigger an exception on Windows", - System.getProperty("os.name").startsWith("Windows")); + JrePlatform.IS_WINDOWS); } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org