diff options
Diffstat (limited to 'tests/test_asyncio/test_cluster.py')
-rw-r--r-- | tests/test_asyncio/test_cluster.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_asyncio/test_cluster.py b/tests/test_asyncio/test_cluster.py index f1bbe42..27f1190 100644 --- a/tests/test_asyncio/test_cluster.py +++ b/tests/test_asyncio/test_cluster.py @@ -802,6 +802,15 @@ class TestClusterRedisCommands: await asyncio.sleep(0.1) assert await r.unlink(*d.keys()) == 0 + async def test_initialize_before_execute_multi_key_command( + self, request: FixtureRequest + ) -> None: + # Test for issue https://github.com/redis/redis-py/issues/2437 + url = request.config.getoption("--redis-url") + r = RedisCluster.from_url(url) + assert 0 == await r.exists("a", "b", "c") + await r.close() + @skip_if_redis_enterprise() async def test_cluster_myid(self, r: RedisCluster) -> None: node = r.get_random_node() |