From 79d42b219b96f582e41e68ee19bf03cff58cd535 Mon Sep 17 00:00:00 2001 From: Yurii Motov <109919500+YuriiMotov@users.noreply.github.com> Date: Tue, 29 Sep 2026 10:26:14 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Fix=20frontend=20test=20timeout=20w?= =?UTF-8?q?ith=20Starlette=20Git=20(#16408)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_frontend.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/test_frontend.py b/tests/test_frontend.py index f587faafbc..0a44df72ed 100644 --- a/tests/test_frontend.py +++ b/tests/test_frontend.py @@ -578,11 +578,8 @@ async def test_frontend_dependency_restores_existing_dependency_stacks( messages = [] async def receive(): - return { # pragma: no cover - "type": "http.request", - "body": b"", - "more_body": False, - } + # Keep the connection open until the response finishes. + await anyio.sleep_forever() async def send(message): messages.append(message)