Skip to content

Commit 24165cf

Browse files
committed
Use IPv4 loopback for cluster tests
1 parent fef69a1 commit 24165cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ def standalone_tests(c, uvloop=False, protocol=2, profile=False, redis_mod_url=N
6969
def cluster_tests(c, uvloop=False, protocol=2, profile=False):
7070
"""Run tests against a redis cluster"""
7171
profile_arg = "--profile" if profile else ""
72-
cluster_url = "redis://localhost:16379/0"
73-
cluster_tls_url = "rediss://localhost:27379/0"
72+
cluster_url = "redis://127.0.0.1:16379/0"
73+
cluster_tls_url = "rediss://127.0.0.1:27379/0"
7474
if uvloop:
7575
run(
7676
f"pytest {profile_arg} --protocol={protocol} --cov=./ --cov-report=xml:coverage_cluster_resp{protocol}_uvloop.xml -m 'not onlynoncluster and not redismod and not graph' --redis-url={cluster_url} --redis-ssl-url={cluster_tls_url} --junit-xml=cluster-resp{protocol}-uvloop-results.xml --uvloop"

0 commit comments

Comments
 (0)