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

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


The following commit(s) were added to refs/heads/10.0.x by this push:
     new 82f71c2c81 Fix regression in HTTP/2 test refactoring
82f71c2c81 is described below

commit 82f71c2c81e8cb81f27bee48859585edb0a20bd1
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Jun 24 09:30:36 2022 +0100

    Fix regression in HTTP/2 test refactoring
---
 test/org/apache/tomcat/util/net/TestSSLHostConfigCompat.java | 5 +----
 test/org/apache/tomcat/util/net/TesterSupport.java           | 6 +++++-
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/test/org/apache/tomcat/util/net/TestSSLHostConfigCompat.java 
b/test/org/apache/tomcat/util/net/TestSSLHostConfigCompat.java
index e098b54d2d..bc824a0456 100644
--- a/test/org/apache/tomcat/util/net/TestSSLHostConfigCompat.java
+++ b/test/org/apache/tomcat/util/net/TestSSLHostConfigCompat.java
@@ -323,10 +323,7 @@ public class TestSSLHostConfigCompat extends 
TomcatBaseTest {
         connector.setScheme("https");
         connector.setSecure(true);
         Assert.assertTrue(connector.setProperty("SSLEnabled", "true"));
-        if (!connector.getProtocolHandlerClassName().contains("Apr")) {
-            // Skip this for APR. It is not supported.
-            Assert.assertTrue(connector.setProperty("sslImplementationName", 
sslImplementationName));
-        }
+        TesterSupport.configureSSLImplementation(tomcat, 
sslImplementationName);
         sslHostConfig.setProtocols("TLSv1.2");
         connector.addSslHostConfig(sslHostConfig);
 
diff --git a/test/org/apache/tomcat/util/net/TesterSupport.java 
b/test/org/apache/tomcat/util/net/TesterSupport.java
index 7bc5febff4..71ab6088bd 100644
--- a/test/org/apache/tomcat/util/net/TesterSupport.java
+++ b/test/org/apache/tomcat/util/net/TesterSupport.java
@@ -262,7 +262,11 @@ public final class TesterSupport {
         } catch (Exception e) {
             Assume.assumeNoException(e);
         }
-        
Assert.assertTrue(tomcat.getConnector().setProperty("sslImplementationName", 
sslImplementationName));
+        Connector connector = tomcat.getConnector();
+        if (!connector.getProtocolHandlerClassName().contains("Apr")) {
+            // Skip this for APR. It is not supported.
+            Assert.assertTrue(connector.setProperty("sslImplementationName", 
sslImplementationName));
+        }
     }
 
     public static void configureClientCertContext(Tomcat tomcat) {


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to