From b2f64c956cf376184139b10e088176c8cf262d0d Mon Sep 17 00:00:00 2001 From: Andrew Park Date: Wed, 11 Nov 2026 20:02:34 +0000 Subject: [PATCH] test(env_gateway): the never-ready site tests don't wait out the 30 s margin --- .../providers/env_providers/env_gateway_provider_test.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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)