Skip to content

Commit

Permalink
NIO2 triggers an even more generic exception
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed Jan 3, 2024
1 parent 33062ee commit b2e0695
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/org/apache/tomcat/util/net/TestSsl.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import javax.net.ssl.HandshakeCompletedEvent;
import javax.net.ssl.HandshakeCompletedListener;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLException;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;

Expand Down Expand Up @@ -285,7 +284,7 @@ public void testClientInitiatedRenegotiation() throws Exception {
if (!renegotiationSupported) {
Assert.fail("Renegotiation started when it should have failed");
}
} catch (SSLException e) {
} catch (IOException e) {
if (renegotiationSupported) {
Assert.fail("Renegotiation failed when it should be supported");
}
Expand Down

0 comments on commit b2e0695

Please sign in to comment.