Skip to content

Commit

Permalink
Fix JedisCommandsTestBase
Browse files Browse the repository at this point in the history
  • Loading branch information
uglide committed May 8, 2024
1 parent 960ce90 commit d937cd6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public JedisCommandsTestBase(RedisProtocol protocol) {

@Before
public void setUp() throws Exception {
jedis = endpoint.getJedis(500);
jedis = new Jedis(endpoint.getHostAndPort(), endpoint.getClientConfigBuilder()
.protocol(protocol).timeoutMillis(500).build());
jedis.flushAll();
}

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

protected Jedis createJedis() {
return endpoint.getJedis();
return new Jedis(endpoint.getHostAndPort(), endpoint.getClientConfigBuilder()
.protocol(protocol).timeoutMillis(500).build());
}
}

0 comments on commit d937cd6

Please sign in to comment.