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 33062ee9fd Use a less specific exception as it seems to vary between environments 33062ee9fd is described below commit 33062ee9fd13112ce9fba4b9ac68c6e0eedf3197 Author: Mark Thomas <ma...@apache.org> AuthorDate: Wed Jan 3 12:47:09 2024 +0000 Use a less specific exception as it seems to vary between environments --- test/org/apache/tomcat/util/net/TestSsl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/org/apache/tomcat/util/net/TestSsl.java b/test/org/apache/tomcat/util/net/TestSsl.java index 7ed2b8f9bf..48902c128a 100644 --- a/test/org/apache/tomcat/util/net/TestSsl.java +++ b/test/org/apache/tomcat/util/net/TestSsl.java @@ -34,7 +34,7 @@ import javax.net.SocketFactory; import javax.net.ssl.HandshakeCompletedEvent; import javax.net.ssl.HandshakeCompletedListener; import javax.net.ssl.SSLContext; -import javax.net.ssl.SSLHandshakeException; +import javax.net.ssl.SSLException; import javax.net.ssl.SSLSocket; import javax.net.ssl.SSLSocketFactory; @@ -285,7 +285,7 @@ public class TestSsl extends TomcatBaseTest { if (!renegotiationSupported) { Assert.fail("Renegotiation started when it should have failed"); } - } catch (SSLHandshakeException e) { + } catch (SSLException e) { if (renegotiationSupported) { Assert.fail("Renegotiation failed when it should be supported"); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org