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 99fc439b96feaa91ded6174b26d6ffcbf87daadf
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Nov 9 17:55:06 2021 +0000

    Make tests more robust
---
 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 7349064..3ad7108 100644
--- a/test/org/apache/catalina/startup/TomcatBaseTest.java
+++ b/test/org/apache/catalina/startup/TomcatBaseTest.java
@@ -173,6 +173,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

Reply via email to