diff --git a/src/test/java/redis/clients/jedis/EndpointConfig.java b/src/test/java/redis/clients/jedis/EndpointConfig.java index 447f0dcd67..866f9b67f9 100644 --- a/src/test/java/redis/clients/jedis/EndpointConfig.java +++ b/src/test/java/redis/clients/jedis/EndpointConfig.java @@ -123,7 +123,7 @@ public DefaultJedisClientConfig.Builder getClientConfigBuilder() { DefaultJedisClientConfig.Builder builder = DefaultJedisClientConfig.builder() .password(password).ssl(tls); - if (tls & environment != null) { + if (tls && environment != null) { builder.sslSocketFactory(TlsUtil.sslSocketFactoryForEnv(environment)); }