This is an automated email from the ASF dual-hosted git repository.
markt-asf 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 b61ee9ccc8 Expand possible exception types on failure
b61ee9ccc8 is described below
commit b61ee9ccc857f8866179978a2ab1a88fcb1c4cbd
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]