mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
test(vertex): skip google maps tool test on transient upstream 500
The test test_gemini_google_maps_tool_simple calls real Vertex AI with the
googleMaps tool, which depends on Google Maps Platform. CI failed on
local_testing_part1 with an InternalServerError 500 from Maps Platform
('Internal server error. Please retry. ...maps-platform-support'),
which is an external upstream flake unrelated to the change under test.
Catch litellm.InternalServerError and skip (mirroring the existing
RateLimitError handler) so transient upstream outages don't block CI.
Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com>
This commit is contained in:
parent
b60d4677cd
commit
779d83af74
1 changed files with 4 additions and 0 deletions
|
|
@ -4225,5 +4225,9 @@ def test_gemini_google_maps_tool_simple():
|
|||
assert response.choices[0].message.content is not None
|
||||
except litellm.RateLimitError:
|
||||
pass
|
||||
except litellm.InternalServerError:
|
||||
pytest.skip(
|
||||
"Google Maps Platform returned a transient 500 (upstream flake); skipping."
|
||||
)
|
||||
except Exception as e:
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue