diff --git a/tst/unit/providers/env_providers/env_gateway_provider_test.py b/tst/unit/providers/env_providers/env_gateway_provider_test.py index 0de98b99d..bef6fee0c 100644 --- a/tst/unit/providers/env_providers/env_gateway_provider_test.py +++ b/tst/unit/providers/env_providers/env_gateway_provider_test.py @@ -2667,7 +2667,9 @@ def site(request: httpx.Request) -> httpx.Response: @pytest.mark.asyncio -async def test_a_site_that_never_says_it_is_ready_fails_the_deploy_naming_why(): +async def test_a_site_that_never_says_it_is_ready_fails_the_deploy_naming_why(monkeypatch): + monkeypatch.setattr(env_gateway_provider, "WEBSITE_READY_MARGIN_S", 0) + def site(request: httpx.Request) -> httpx.Response: if request.url.path.endswith("/.well-known/agent-env.json"): return httpx.Response(200, json=_READY_CARD) @@ -2680,7 +2682,9 @@ def site(request: httpx.Request) -> httpx.Response: @pytest.mark.asyncio -async def test_a_site_whose_ready_answers_no_website_readiness_is_never_ready_and_the_deploy_says_so(): +async def test_a_site_whose_ready_answers_no_website_readiness_is_never_ready_and_the_deploy_says_so(monkeypatch): + monkeypatch.setattr(env_gateway_provider, "WEBSITE_READY_MARGIN_S", 0) + def site(request: httpx.Request) -> httpx.Response: if request.url.path.endswith("/.well-known/agent-env.json"): return httpx.Response(200, json=_READY_CARD)