From 42861114a7da4536b7f8f6bcb1550f364b877511 Mon Sep 17 00:00:00 2001 From: Harshit Jain <48647625+Harshit28j@users.noreply.github.com> Date: Sat, 7 Mar 2026 04:03:24 +0530 Subject: [PATCH] Update tests/test_litellm/integrations/test_prometheus_double_counting.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- .../integrations/test_prometheus_double_counting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_litellm/integrations/test_prometheus_double_counting.py b/tests/test_litellm/integrations/test_prometheus_double_counting.py index e2580fe0d31..f100964a386 100644 --- a/tests/test_litellm/integrations/test_prometheus_double_counting.py +++ b/tests/test_litellm/integrations/test_prometheus_double_counting.py @@ -167,7 +167,7 @@ def test_callback_deduplication(): # Since we added "prometheus" string twice, it might initialize it twice, but replacing # in-place should lead to correct count matching replaced. Actually the old buggy code # wouldn't remove "prometheus". The new one replaces it. - assert len(prometheus_instances) > 0 + assert len(prometheus_instances) == 1 finally: # Restore litellm.callbacks = old_callbacks