From d937cd6c5045d5fe976ac82abbea5dc6f7bba12f Mon Sep 17 00:00:00 2001 From: Igor Malinovskiy Date: Wed, 8 May 2024 17:22:40 +0200 Subject: [PATCH] Fix JedisCommandsTestBase --- .../clients/jedis/commands/jedis/JedisCommandsTestBase.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/java/redis/clients/jedis/commands/jedis/JedisCommandsTestBase.java b/src/test/java/redis/clients/jedis/commands/jedis/JedisCommandsTestBase.java index 27a0f53c81..292f9d2115 100644 --- a/src/test/java/redis/clients/jedis/commands/jedis/JedisCommandsTestBase.java +++ b/src/test/java/redis/clients/jedis/commands/jedis/JedisCommandsTestBase.java @@ -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(); } @@ -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()); } }