Skip to content

Commit d937cd6

Browse files
committed
Fix JedisCommandsTestBase
1 parent 960ce90 commit d937cd6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/java/redis/clients/jedis/commands/jedis/JedisCommandsTestBase.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public JedisCommandsTestBase(RedisProtocol protocol) {
4242

4343
@Before
4444
public void setUp() throws Exception {
45-
jedis = endpoint.getJedis(500);
45+
jedis = new Jedis(endpoint.getHostAndPort(), endpoint.getClientConfigBuilder()
46+
.protocol(protocol).timeoutMillis(500).build());
4647
jedis.flushAll();
4748
}
4849

@@ -52,6 +53,7 @@ public void tearDown() throws Exception {
5253
}
5354

5455
protected Jedis createJedis() {
55-
return endpoint.getJedis();
56+
return new Jedis(endpoint.getHostAndPort(), endpoint.getClientConfigBuilder()
57+
.protocol(protocol).timeoutMillis(500).build());
5658
}
5759
}

0 commit comments

Comments
 (0)