From c60a56a1c78d3dd67482956bb8c7a5c6147e6366 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Fri, 30 Oct 2026 08:18:38 -0700 Subject: [PATCH] test(router): use fixed start times in least-busy fixtures --- tests/unit/decisions/test_main.py | 2 +- tests/unit/router_strategy/test_least_busy.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/decisions/test_main.py b/tests/unit/decisions/test_main.py index 73fda703f88..c8113d638a6 100644 --- a/tests/unit/decisions/test_main.py +++ b/tests/unit/decisions/test_main.py @@ -320,7 +320,7 @@ async def test_least_busy_frees_a_decisions_deployment_once_a_proxy_logged_call_ logging_obj, _ = litellm.utils.function_setup( original_function="adecisions", rules_obj=litellm.utils.Rules(), - start_time=datetime.now(), + start_time=datetime(2026, 1, 1), model="jev", litellm_call_id=str(uuid.uuid4()), ) diff --git a/tests/unit/router_strategy/test_least_busy.py b/tests/unit/router_strategy/test_least_busy.py index 212dc571cf5..6cccec1d8ad 100644 --- a/tests/unit/router_strategy/test_least_busy.py +++ b/tests/unit/router_strategy/test_least_busy.py @@ -791,7 +791,7 @@ async def test_a_fallback_hop_rejected_before_its_provider_frees_its_pick_when_e logging_obj, request = litellm.utils.function_setup( original_function="acompletion", rules_obj=litellm.utils.Rules(), - start_time=datetime.datetime.now(), + start_time=datetime.datetime(2026, 1, 1), model="unreachable-group", messages=[{"role": "user", "content": "hi"}], logit_bias={"1": 1},