diff --git a/src/test/java/redis/clients/jedis/SSLOptionsJedisClusterTest.java b/src/test/java/redis/clients/jedis/SSLOptionsJedisClusterTest.java index 5cde75dd56..2378958c9c 100644 --- a/src/test/java/redis/clients/jedis/SSLOptionsJedisClusterTest.java +++ b/src/test/java/redis/clients/jedis/SSLOptionsJedisClusterTest.java @@ -183,7 +183,8 @@ public void connectWithCustomHostNameVerifier() { DefaultJedisClientConfig.builder().password("cluster") .sslOptions(SslOptions.builder() .truststore(new File("src/test/resources/truststore.jceks")) - .trustStoreType("jceks").build()) + .trustStoreType("jceks") + .sslVerifyMode(SslVerifyMode.CA).build()) .hostnameVerifier(localhostVerifier).hostAndPortMapper(portMap).build(), DEFAULT_REDIRECTIONS, DEFAULT_POOL_CONFIG)) { jc3.get("foo");