summaryrefslogtreecommitdiff
path: root/tests/test_asyncio/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_asyncio/conftest.py')
-rw-r--r--tests/test_asyncio/conftest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_asyncio/conftest.py b/tests/test_asyncio/conftest.py
index 34c22c5..02f2fc5 100644
--- a/tests/test_asyncio/conftest.py
+++ b/tests/test_asyncio/conftest.py
@@ -202,7 +202,7 @@ async def wait_for_command(
# generate key
redis_version = REDIS_INFO["version"]
if Version(redis_version) >= Version("5.0.0"):
- id_str = str(client.client_id())
+ id_str = str(await client.client_id())
else:
id_str = f"{random.randrange(2 ** 32):08x}"
key = f"__REDIS-PY-{id_str}__"