mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-30 06:43:27 +00:00
test(openai): cover non-string guard in connection error checker
This commit is contained in:
parent
cae589b712
commit
51b5a6523d
1 changed files with 2 additions and 0 deletions
|
|
@ -728,6 +728,8 @@ def test_openai_genuine_500_still_maps_to_internal_server_error():
|
|||
("Connection refused", True),
|
||||
("The server had an error processing your request.", False),
|
||||
("invalid_request_error", False),
|
||||
(None, False),
|
||||
(123, False),
|
||||
],
|
||||
)
|
||||
def test_is_error_str_connection_error(error_str, expected):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue