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

markt 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 6d7cbebd3b Fix failing test.
6d7cbebd3b is described below

commit 6d7cbebd3bf261ece3ac6be95db46cd2e7fe4d4c
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Jan 14 18:21:21 2026 +0000

    Fix failing test.
    
    APR has been observed to throw a SocketException here. Assume NIO might
    too.
---
 test/org/apache/tomcat/security/TestSecurity2017Ocsp.java | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/test/org/apache/tomcat/security/TestSecurity2017Ocsp.java 
b/test/org/apache/tomcat/security/TestSecurity2017Ocsp.java
index e255f02948..6201593464 100644
--- a/test/org/apache/tomcat/security/TestSecurity2017Ocsp.java
+++ b/test/org/apache/tomcat/security/TestSecurity2017Ocsp.java
@@ -101,12 +101,7 @@ public class TestSecurity2017Ocsp extends OcspBaseTest {
         try {
             rc = getUrl("https://localhost:"; + getPort() + "/simple", new 
ByteChunk(), false);
         } catch (SocketException se) {
-            // NIO2 may throw a SocketException rather than a 
SSLHandshakeException
-            if 
(getTomcatInstance().getConnector().getProtocolHandlerClassName().contains("Nio2"))
 {
-                throw new SSLHandshakeException(se.getMessage());
-            } else {
-                throw se;
-            }
+            throw new SSLHandshakeException(se.getMessage());
         }
 
         // If the TLS handshake fails, the test won't get this far.


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

Reply via email to