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:
mateo-berri 2026-05-21 21:04:58 +00:00
parent c949c54c4d
commit 0d999c02d7
No known key found for this signature in database

View file

@ -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}")