mirror of
https://github.com/tiennm99/litellm.git
synced 2026-06-17 20:48:32 +00:00
cc027a2b90
The test waited a fixed 3s for async callbacks to populate log_queue. Under xdist -n 4, CPU contention can delay the GLOBAL_LOGGING_WORKER background task beyond 3s. Replace fixed sleeps with polling loops (up to 10s) that break as soon as the expected condition is met. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
In total litellm runs 1000+ tests
[02/20/2025] Update:
To make it easier to contribute and map what behavior is tested,
we've started mapping the litellm directory in tests/test_litellm
This folder can only run mock tests.