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 cb06e16 Make tests more robist cb06e16 is described below commit cb06e16a6cd30e32878598c5092edce22ae41e8d Author: Mark Thomas <ma...@apache.org> AuthorDate: Tue Nov 9 17:55:06 2021 +0000 Make tests more robist --- test/org/apache/catalina/startup/TomcatBaseTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/org/apache/catalina/startup/TomcatBaseTest.java b/test/org/apache/catalina/startup/TomcatBaseTest.java index 9dab366..5f2941e 100644 --- a/test/org/apache/catalina/startup/TomcatBaseTest.java +++ b/test/org/apache/catalina/startup/TomcatBaseTest.java @@ -171,6 +171,8 @@ public abstract class TomcatBaseTest extends LoggingBaseTest { Assert.assertTrue(connector.setProperty("address", InetAddress.getByName("localhost").getHostAddress())); // Use random free port connector.setPort(0); + // By default, a connector failure means a failed test + connector.setThrowOnFailure(true); // Mainly set to reduce timeouts during async tests Assert.assertTrue(connector.setProperty("connectionTimeout", "3000")); tomcat.getService().addConnector(connector); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org