This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new 1ddbca4f74 Expand possible exception types on failure
1ddbca4f74 is described below
commit 1ddbca4f74757fe8fd15d53074580d06e55c4a6c
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]