Skip to content

Commit 0b9845f

Browse files
author
ranko r sredojevic
committed
Minimize failures (redis only NonAscii; rediscluster a few).
1 parent a878da9 commit 0b9845f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_rejson.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ReJSONTestCase(TestCase):
1515
def _create_client(self, *args, **kwargs):
1616
if REDIS_CLUSTER_HOST is None or \
1717
REDIS_CLUSTER_PORT is None:
18-
return Client(port=port, decode_responses=True)
18+
return Client(*args, **kwargs)
1919
else:
2020
from rediscluster import RedisCluster
2121
startup_nodes = [{"host": REDIS_CLUSTER_HOST,
@@ -26,7 +26,7 @@ def _create_client(self, *args, **kwargs):
2626

2727
def setUp(self):
2828
global rj
29-
rj = self._create_client()
29+
rj = self._create_client(port=port, decode_responses=True)
3030
rj.flushdb()
3131

3232

0 commit comments

Comments
 (0)