Skip to content

Commit

Permalink
remove await from method calls that aren't async anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
amirreza8002 committed Jan 7, 2025
1 parent 4a639a5 commit 9d4ecf6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/tests_async/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,16 +279,16 @@ async def test_set_call_empty_pipeline(
herd_timeout = (default_timeout + settings.CACHE_HERD_TIMEOUT) * 1000
herd_pack_value = await cache.client._pack(value, default_timeout)
mocked_set.assert_called_once_with(
await cache.client.make_key(key, version=None),
await cache.client.encode(herd_pack_value),
cache.client.make_key(key, version=None),
cache.client.encode(herd_pack_value),
nx=False,
px=herd_timeout,
xx=False,
)
else:
mocked_set.assert_called_once_with(
await cache.client.make_key(key, version=None),
await cache.client.encode(value),
cache.client.make_key(key, version=None),
cache.client.encode(value),
nx=False,
px=cache.client._backend.default_timeout * 1000,
xx=False,
Expand Down

0 comments on commit 9d4ecf6

Please sign in to comment.