From 7175a5ac624376b4ec6c1db0d37bf29b462db0fd Mon Sep 17 00:00:00 2001 From: M Sazzadul Hoque <7600764+sazzad16@users.noreply.github.com> Date: Tue, 11 Jun 2024 17:27:28 +0600 Subject: [PATCH] Merge fix: after introducing EndpointConfig in #3836 --- .../jedis/prefix/JedisPooledPrefixedKeysTest.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/test/java/redis/clients/jedis/prefix/JedisPooledPrefixedKeysTest.java b/src/test/java/redis/clients/jedis/prefix/JedisPooledPrefixedKeysTest.java index aee4f5b76d..e1c99bfb0b 100644 --- a/src/test/java/redis/clients/jedis/prefix/JedisPooledPrefixedKeysTest.java +++ b/src/test/java/redis/clients/jedis/prefix/JedisPooledPrefixedKeysTest.java @@ -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 { - 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()); } }