summaryrefslogtreecommitdiff
path: root/tests/test_asyncio/test_cluster.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_asyncio/test_cluster.py')
-rw-r--r--tests/test_asyncio/test_cluster.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_asyncio/test_cluster.py b/tests/test_asyncio/test_cluster.py
index 2d6099f..17aa879 100644
--- a/tests/test_asyncio/test_cluster.py
+++ b/tests/test_asyncio/test_cluster.py
@@ -1006,6 +1006,13 @@ class TestClusterRedisCommands:
myid = await r.cluster_myid(node)
assert len(myid) == 40
+ @skip_if_server_version_lt("7.2.0")
+ @skip_if_redis_enterprise()
+ async def test_cluster_myshardid(self, r: RedisCluster) -> None:
+ node = r.get_random_node()
+ myshardid = await r.cluster_myshardid(node)
+ assert len(myshardid) == 40
+
@skip_if_redis_enterprise()
async def test_cluster_slots(self, r: RedisCluster) -> None:
mock_all_nodes_resp(r, default_cluster_slots)