fix: correct patch target for spend log queue size in tests

Co-authored-by: Ishaan Jaff <ishaan-jaff@users.noreply.github.com>
This commit is contained in:
Cursor Agent 2026-03-13 23:04:03 +00:00
parent 09ca2315b1
commit 282633d3d2
No known key found for this signature in database

View file

@ -148,7 +148,7 @@ class TestSpendLogQueueBounding:
max_size = 100 # Use a small value for testing
with patch(
"litellm.proxy.db.db_spend_update_writer.MAX_SPEND_LOG_TRANSACTIONS_QUEUE_SIZE",
"litellm.constants.MAX_SPEND_LOG_TRANSACTIONS_QUEUE_SIZE",
max_size,
):
# Fill the queue beyond the limit
@ -178,7 +178,7 @@ class TestSpendLogQueueBounding:
max_size = 20
with patch(
"litellm.proxy.db.db_spend_update_writer.MAX_SPEND_LOG_TRANSACTIONS_QUEUE_SIZE",
"litellm.constants.MAX_SPEND_LOG_TRANSACTIONS_QUEUE_SIZE",
max_size,
):
# Fill exactly to the limit