diff options
author | Kristján Valur Jónsson <sweskman@gmail.com> | 2023-05-07 19:33:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-07 22:33:14 +0300 |
commit | 3748a8b36d5c765f5d21c6d20b041fa1876021ae (patch) | |
tree | 1e9602c147fdd922374761f79eca1e9a35a32fae /tests/test_asyncio/test_sentinel.py | |
parent | ffb2b83468123c314d2742d1b1e68e6ce9eeb244 (diff) | |
download | redis-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.py | 2 |
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: |