forked from redis/jedis
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge fix: after introducing EndpointConfig in redis#3836
- Loading branch information
Showing
1 changed file
with
3 additions
and
6 deletions.
There are no files selected for viewing
9 changes: 3 additions & 6 deletions
9
src/test/java/redis/clients/jedis/prefix/JedisPooledPrefixedKeysTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | ||
} | ||
} |