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:
Cursor Agent 2026-03-07 04:01:43 +00:00
parent dbeee7470b
commit 29ff7940f6

View file

@ -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: