mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
test(auth): assert reconnect lock timeout argument
This commit is contained in:
parent
f2883192cd
commit
b53c34280a
1 changed files with 2 additions and 0 deletions
|
|
@ -180,6 +180,7 @@ async def test_get_key_object_should_reconnect_once_on_db_connection_error():
|
|||
mock_prisma_client.attempt_db_reconnect.assert_awaited_once_with(
|
||||
reason="auth_get_key_object_lookup_failure",
|
||||
timeout_seconds=2.0,
|
||||
lock_timeout_seconds=0.1,
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -205,6 +206,7 @@ async def test_get_key_object_should_raise_if_reconnect_fails_on_db_connection_e
|
|||
mock_prisma_client.attempt_db_reconnect.assert_awaited_once_with(
|
||||
reason="auth_get_key_object_lookup_failure",
|
||||
timeout_seconds=2.0,
|
||||
lock_timeout_seconds=0.1,
|
||||
)
|
||||
assert mock_prisma_client.get_data.await_count == 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue