From 083965ad5074a6675f6bf729f978ef58b7fbd18c Mon Sep 17 00:00:00 2001 From: Lareb Zafar Date: Fri, 4 Dec 2026 04:08:10 +0530 Subject: [PATCH] The streaming retirement test uses the private request clock A delayed event-loop turn can expire the entry watchdog before the body handler runs. Advance the test clock only while the loop waits for work. Signed-off-by: Lareb Zafar --- tests/unit/test_cell_retirement.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_cell_retirement.py b/tests/unit/test_cell_retirement.py index c8246221c04..0ac2197cbf4 100644 --- a/tests/unit/test_cell_retirement.py +++ b/tests/unit/test_cell_retirement.py @@ -773,7 +773,8 @@ async def work(ch): assert retirement.get_gate().closed and retirement.get_gate().active == 0 -@pytest.mark.asyncio +@pytest.mark.asyncio(loop_scope="function") +@pytest.mark.usefixtures("_request_clock") async def test_stream_and_response_background_cleanup_remain_counted(monkeypatch): import asyncio