litellm/tests/store_model_in_db_tests
Yuneng Jiang b905682413
test: de-flake langfuse callbacks-in-db e2e test
The test posted /config/update, slept a fixed 20s, then fired a single chat request with no readiness check or retry. When the single-process proxy was momentarily not accepting connections in that window, the request failed with a bare openai.APIConnectionError and took the whole job down, since the suite runs against one shared container with pytest -x

Gate the chat request behind a /health/liveliness poll, retry it on connection errors only so real HTTP errors and the Langfuse assertion still fail the test, close the previously leaked aiohttp session, and target 127.0.0.1 instead of the 0.0.0.0 bind address. In CI, give the proxy container --restart on-failure so an intermittent crash recovers instead of leaving the port dead for the rest of the run
2026-07-04 19:14:53 -07:00
..
test_adding_passthrough_model.py test: fix assemblyai passthrough transcription request format 2026-03-30 18:49:04 -07:00
test_callbacks_in_db.py test: de-flake langfuse callbacks-in-db e2e test 2026-07-04 19:14:53 -07:00
test_mcp_servers.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_openai_error_handling.py test_chat_completion_bad_model_with_spend_logs 2025-02-28 20:19:43 -08:00
test_team_models.py fix: use fastuuid helper (#14903) 2025-09-25 15:47:01 -07:00