forked from phoenix/litellm-mirror
test(test_router.py): handle rate limiting error
This commit is contained in:
parent
61f2fe5837
commit
969594a4b1
1 changed files with 2 additions and 0 deletions
|
@ -495,6 +495,8 @@ def test_img_gen_on_router():
|
|||
print(response)
|
||||
assert len(response.data) > 0
|
||||
router.reset()
|
||||
except litellm.RateLimitError as e:
|
||||
pass
|
||||
except Exception as e:
|
||||
traceback.print_exc()
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue