mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-04 02:31:27 +00:00
test(vertex): tolerate transient InternalServerError in google maps tool test
test_gemini_google_maps_tool_simple makes live calls to Vertex AI's Google
Maps grounding backend, which intermittently returns 500 INTERNAL ("Please
retry") — a transient upstream failure, not a LiteLLM bug. The test already
passes on RateLimitError; treat InternalServerError the same way so transient
Vertex-side failures don't fail CI.
This commit is contained in:
parent
c949c54c4d
commit
0d999c02d7
1 changed files with 1 additions and 1 deletions
|
|
@ -4223,7 +4223,7 @@ def test_gemini_google_maps_tool_simple():
|
|||
)
|
||||
print(f"Response: {response.model_dump_json(indent=4)}")
|
||||
assert response.choices[0].message.content is not None
|
||||
except litellm.RateLimitError:
|
||||
except (litellm.RateLimitError, litellm.InternalServerError):
|
||||
pass
|
||||
except Exception as e:
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue