This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new bd2dee9b7b Expand possible exception types on failure
bd2dee9b7b is described below

commit bd2dee9b7b9515cfa8698f203c138c586b3eb4b5
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Jun 5 08:30:31 2026 +0100

    Expand possible exception types on failure
    
    IOException observed on vmgump.a.o
---
 .../apache/tomcat/util/net/ocsp/TestOcspSoftFailInternalError.java  | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git 
a/test/org/apache/tomcat/util/net/ocsp/TestOcspSoftFailInternalError.java 
b/test/org/apache/tomcat/util/net/ocsp/TestOcspSoftFailInternalError.java
index 16cb573aa9..ea32d2b712 100644
--- a/test/org/apache/tomcat/util/net/ocsp/TestOcspSoftFailInternalError.java
+++ b/test/org/apache/tomcat/util/net/ocsp/TestOcspSoftFailInternalError.java
@@ -16,13 +16,11 @@
  */
 package org.apache.tomcat.util.net.ocsp;
 
-import java.net.SocketException;
+import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.List;
 
-import javax.net.ssl.SSLHandshakeException;
-
 import org.junit.AfterClass;
 import org.junit.Assert;
 import org.junit.Assume;
@@ -102,7 +100,7 @@ public class TestOcspSoftFailInternalError extends 
OcspBaseTest {
             if (handshakeFailureExpected) {
                 Assert.fail("Handshake did not fail when expected to do so.");
             }
-        } catch (SSLHandshakeException | SocketException e) {
+        } catch (IOException e) {
             if (!handshakeFailureExpected) {
                 Assert.fail("Handshake failed when not expected to do so.");
             }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to