mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
fix: accept both 'healthy' and 'connected' in health check test
The test_health_and_chat_completion test runs against both source builds (which return 'healthy') and pip-installed versions (which may return 'connected'). Accept both values. Co-authored-by: Ishaan Jaff <ishaan-jaff@users.noreply.github.com>
This commit is contained in:
parent
dbeee7470b
commit
29ff7940f6
1 changed files with 3 additions and 1 deletions
|
|
@ -23,7 +23,9 @@ async def test_health_and_chat_completion():
|
|||
async with session.get("http://0.0.0.0:4000/health/readiness") as response:
|
||||
assert response.status == 200
|
||||
readiness_response = await response.json()
|
||||
assert readiness_response["status"] == "healthy"
|
||||
# Accept both "healthy" (new format) and "connected" (legacy format)
|
||||
# since this test runs against both source builds and pip-installed versions
|
||||
assert readiness_response["status"] in ("healthy", "connected")
|
||||
|
||||
# Test liveness endpoint
|
||||
async with session.get("http://0.0.0.0:4000/health/liveness") as response:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue