summaryrefslogtreecommitdiff
path: root/tests/test_asyncio/test_sentinel.py
diff options
context:
space:
mode:
authorKristján Valur Jónsson <sweskman@gmail.com>2023-05-07 19:33:14 +0000
committerGitHub <noreply@github.com>2023-05-07 22:33:14 +0300
commit3748a8b36d5c765f5d21c6d20b041fa1876021ae (patch)
tree1e9602c147fdd922374761f79eca1e9a35a32fae /tests/test_asyncio/test_sentinel.py
parentffb2b83468123c314d2742d1b1e68e6ce9eeb244 (diff)
downloadredis-py-3748a8b36d5c765f5d21c6d20b041fa1876021ae.tar.gz
Add RedisCluster.remap_host_port, Update tests for CWE 404 (#2706)
* Use provided redis address. Bind to IPv4 * Add missing "await" and perform the correct test for pipe eimpty * Wait for a send event, rather than rely on sleep time. Excpect cancel errors. * set delay to 0 except for operation we want to cancel This speeds up the unit tests considerably by eliminating unnecessary delay. * Release resources in test * Fix cluster test to use address_remap and multiple proxies. * Use context manager to manage DelayProxy * Mark failing pipeline tests * lint * Use a common "master_host" test fixture
Diffstat (limited to 'tests/test_asyncio/test_sentinel.py')
-rw-r--r--tests/test_asyncio/test_sentinel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_asyncio/test_sentinel.py b/tests/test_asyncio/test_sentinel.py
index 5a0533b..7866056 100644
--- a/tests/test_asyncio/test_sentinel.py
+++ b/tests/test_asyncio/test_sentinel.py
@@ -15,7 +15,7 @@ from redis.asyncio.sentinel import (
@pytest_asyncio.fixture(scope="module")
def master_ip(master_host):
- yield socket.gethostbyname(master_host)
+ yield socket.gethostbyname(master_host[0])
class SentinelTestClient: