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

spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git

commit e7c889967a5c40de6e4d5086e8e7d547ba6f406b
Author: Stephen Mallette <[email protected]>
AuthorDate: Tue Oct 5 09:38:35 2021 -0400

    Changed assertion for SSL error.
    
    Seems there is some slightly different behavior around SSLException on 
master as compared to 3.5-dev CTR
---
 .../apache/tinkerpop/gremlin/server/GremlinServerSslIntegrateTest.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerSslIntegrateTest.java
 
b/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerSslIntegrateTest.java
index fa6b5be..57479a7 100644
--- 
a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerSslIntegrateTest.java
+++ 
b/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerSslIntegrateTest.java
@@ -32,6 +32,7 @@ import org.junit.Test;
 
 import javax.net.ssl.SSLException;
 import javax.net.ssl.SSLHandshakeException;
+import java.nio.channels.ClosedChannelException;
 import java.util.Arrays;
 import java.util.Collections;
 import java.util.concurrent.TimeoutException;
@@ -261,7 +262,7 @@ public class GremlinServerSslIntegrateTest extends 
AbstractGremlinServerIntegrat
         } catch (Exception x) {
             assertThat(x, instanceOf(NoHostAvailableException.class));
             final Throwable root = ExceptionUtils.getRootCause(x);
-            assertThat(root, instanceOf(SSLException.class));
+            assertThat(root, instanceOf(ClosedChannelException.class));
         } finally {
             cluster.close();
         }

Reply via email to