From a01746c19e7eb328fa2f90cfa367b4fa4f8587e4 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 1 Jun 2024 21:00:24 -0700 Subject: [PATCH] fix test_daily_reports_redis_cache_scheduler --- litellm/tests/test_alerting.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/litellm/tests/test_alerting.py b/litellm/tests/test_alerting.py index 19e0e719f..9dfec3dcf 100644 --- a/litellm/tests/test_alerting.py +++ b/litellm/tests/test_alerting.py @@ -299,6 +299,12 @@ async def test_daily_reports_redis_cache_scheduler(): slack_alerting = SlackAlerting( internal_usage_cache=DualCache(redis_cache=redis_cache) ) + + # we need this to be 0 so it actualy sends the report + slack_alerting.alerting_args.daily_report_frequency = 0 + + from litellm.router import AlertingConfig + router = litellm.Router( model_list=[ {