Skip to content

Commit

Permalink
fix: replace localhost with 127.0.0.1 in cluster tests (#2665)
Browse files Browse the repository at this point in the history
  • Loading branch information
dranikpg authored Feb 27, 2024
1 parent df39d3a commit 5ac5e3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/dragonfly/cluster_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ async def generate_config():
"slot_ranges": [{"start": s, "end": e} for (s, e) in node.slots],
"master": {
"id": await get_node_id(node.admin_client),
"ip": "localhost",
"ip": "127.0.0.1",
"port": node.instance.port,
},
"replicas": [],
Expand Down
2 changes: 1 addition & 1 deletion tests/dragonfly/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def target(self, key_cnt):

def _make_client(self, **kwargs):
if self.cluster_mode:
return aioredis.RedisCluster(host="localhost", **kwargs)
return aioredis.RedisCluster(host="127.0.0.1", **kwargs)
else:
return aioredis.Redis(**kwargs)

Expand Down

0 comments on commit 5ac5e3b

Please sign in to comment.