litellm/tests/test_litellm/proxy/spend_tracking
Ishaan Jaffer e19458a421 fix: replace asyncio.sleep with polling loop in spend logs tests
The GLOBAL_LOGGING_WORKER processes callbacks via an async queue, so
asyncio.sleep(1) is a race condition - under CI load the worker may not
have processed the queued task within 1 second. Replace with a polling
helper that waits up to 10 seconds for the mock to be called.

Also add metadata.attempted_retries and metadata.max_retries to
ignored_keys since these are new fields.
2026-02-21 10:00:56 -08:00
..
test_cloudzero_endpoints.py Adding backend 2025-12-19 13:04:59 -08:00
test_spend_management_endpoints.py fix: replace asyncio.sleep with polling loop in spend logs tests 2026-02-21 10:00:56 -08:00
test_spend_query_optimization.py fix(sql): Optimize SpendLogs queries to use timestamp filtering for index usage (#17504) 2025-12-04 21:52:57 -08:00
test_spend_tracking_utils.py [Feature] UI - Logs: Show retry count for requests 2026-02-20 13:51:20 -08:00