fix: update health check test assertion from 'connected' to 'healthy'

The /health/readiness endpoint now returns {"status": "healthy"} with the
DB status in a separate field, instead of the previous {"status": "connected"}.

Co-authored-by: Ishaan Jaff <ishaan-jaff@users.noreply.github.com>
This commit is contained in:
Cursor Agent 2026-03-07 03:14:28 +00:00
parent 29aac33fad
commit 1f3d9f0428

View file

@ -23,7 +23,7 @@ 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"] == "connected"
assert readiness_response["status"] == "healthy"
# Test liveness endpoint
async with session.get("http://0.0.0.0:4000/health/liveness") as response: