mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-07 07:58:09 +00:00
test(key_management): split the gone-row eviction assertion into one comprehension per worker
This commit is contained in:
parent
c9a7e96007
commit
b5abdf360e
1 changed files with 2 additions and 5 deletions
|
|
@ -5940,11 +5940,8 @@ async def test_delete_verification_tokens_evicts_a_requested_key_whose_row_is_al
|
|||
finally:
|
||||
await peer_subscriber.stop()
|
||||
|
||||
assert [
|
||||
cache.get_cache(key=token)
|
||||
for cache in (deleting_worker_cache, peer_worker_cache)
|
||||
for token in (live_token, gone_token)
|
||||
] == [None, None, None, None]
|
||||
assert [deleting_worker_cache.get_cache(key=token) for token in (live_token, gone_token)] == [None, None]
|
||||
assert [peer_worker_cache.get_cache(key=token) for token in (live_token, gone_token)] == [None, None]
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue