Skip to content

Commit

Permalink
Merge fix: after introducing EndpointConfig in redis#3836
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Jun 11, 2024
1 parent c3d9c76 commit 7175a5a
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
package redis.clients.jedis.prefix;

import redis.clients.jedis.DefaultJedisClientConfig;
import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.EndpointConfig;
import redis.clients.jedis.HostAndPorts;
import redis.clients.jedis.JedisClientConfig;
import redis.clients.jedis.JedisPooled;

public class JedisPooledPrefixedKeysTest extends PrefixedKeysTest<JedisPooled> {

private static final HostAndPort ADDRESS = HostAndPorts.getRedisServers().get(1);
private static final JedisClientConfig CLIENT_CONFIG = DefaultJedisClientConfig.builder().password("foobared").build();
private static final EndpointConfig ENDPOINT = HostAndPorts.getRedisEndpoint("standalone1");

@Override
JedisPooled nonPrefixingJedis() {
return new JedisPooled(ADDRESS, CLIENT_CONFIG);
return new JedisPooled(ENDPOINT.getHostAndPort(), ENDPOINT.getClientConfigBuilder().timeoutMillis(500).build());
}
}

0 comments on commit 7175a5a

Please sign in to comment.