mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
test(test_key_generate_prisma.py): add sleep time
This commit is contained in:
parent
23357e9369
commit
c7024baf7a
1 changed files with 3 additions and 1 deletions
|
@ -941,7 +941,7 @@ def test_call_with_key_over_budget(prisma_client):
|
|||
start_time=datetime.now(),
|
||||
end_time=datetime.now(),
|
||||
)
|
||||
|
||||
await asyncio.sleep(4)
|
||||
# test spend_log was written and we can read it
|
||||
spend_logs = await view_spend_logs(request_id=request_id)
|
||||
|
||||
|
@ -965,6 +965,8 @@ def test_call_with_key_over_budget(prisma_client):
|
|||
|
||||
asyncio.run(test())
|
||||
except Exception as e:
|
||||
# print(f"Error - {str(e)}")
|
||||
traceback.print_exc()
|
||||
error_detail = e.message
|
||||
assert "Authentication Error, ExceededTokenBudget:" in error_detail
|
||||
print(vars(e))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue