From 38c605b8d461fc031e678e2750d3f4804f1bda2c Mon Sep 17 00:00:00 2001 From: markt Date: Thu, 28 Jul 2011 12:50:04 +0000 Subject: [PATCH] Catch less specific exception to deal with intermittent failures with OpenJDK git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1151825 13f79535-47bb-0310-9956-ffa450edef68 --- test/org/apache/tomcat/util/net/TestCustomSsl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/org/apache/tomcat/util/net/TestCustomSsl.java b/test/org/apache/tomcat/util/net/TestCustomSsl.java index 6f3c482ff..0cdaf6b9b 100644 --- a/test/org/apache/tomcat/util/net/TestCustomSsl.java +++ b/test/org/apache/tomcat/util/net/TestCustomSsl.java @@ -19,7 +19,7 @@ package org.apache.tomcat.util.net; import java.io.File; import java.net.SocketException; -import javax.net.ssl.SSLHandshakeException; +import javax.net.ssl.SSLException; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; @@ -139,7 +139,7 @@ public class TestCustomSsl extends TomcatBaseTest { fail(se.getMessage()); se.printStackTrace(); } - } catch (SSLHandshakeException he) { + } catch (SSLException he) { if (serverTrustAll) { fail(he.getMessage()); he.printStackTrace(); -- 2.11.0