Skip to content

Commit

Permalink
Resolving more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aiven-sal committed May 27, 2024
1 parent d3917cb commit 46f970c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,11 +459,7 @@ def wait_for_command(client, monitor, command, key=None):
# for, something went wrong
if key is None:
# generate key
valkey_version = VALKEY_INFO["version"]
if Version(valkey_version) >= Version("5.0.0"):
id_str = str(client.client_id())
else:
id_str = f"{random.randrange(2 ** 32):08x}"
id_str = str(client.client_id())
key = f"__VALKEY-PY-{id_str}__"
client.get(key)
while True:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_asyncio/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ async def wait_for_command(
# for, something went wrong
if key is None:
# generate key
id_str = f"{random.randrange(2 ** 32):08x}"
id_str = str(await client.client_id())
key = f"__VALKEY-PY-{id_str}__"
await client.get(key)
while True:
Expand Down
2 changes: 1 addition & 1 deletion tests/testdata/titles.csv
Original file line number Diff line number Diff line change
Expand Up @@ -4321,7 +4321,7 @@ gustav krupp von bohlen und halbach,1
yasmany tomás,4
notre temps,1
cats %,1
intramolecular vibrational energy valkeytribution,1
intramolecular vibrational energy redistribution,1
graduate management admission test,49
robin fleming,1
daniel gadzhev,1
Expand Down

0 comments on commit 46f970c

Please sign in to comment.