From 25c2fad3e1df26259f4b3885525ab7678abb5219 Mon Sep 17 00:00:00 2001 From: Alexandre Teixeira <111787685+alteixeira20@users.noreply.github.com> Date: Tue, 27 Oct 2026 16:20:08 +0000 Subject: [PATCH] test(editor): preserve ASGI event loop across bridge requests --- tests/test_agent_editor_routes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_agent_editor_routes.py b/tests/test_agent_editor_routes.py index 89f0beb59..f9f27e3e1 100644 --- a/tests/test_agent_editor_routes.py +++ b/tests/test_agent_editor_routes.py @@ -27,7 +27,8 @@ def _reset_planner(monkeypatch): def client(): app = FastAPI() app.include_router(eaar.setup_editor_agent_routes()) - return TestClient(app) + with TestClient(app) as client: + yield client def test_plan_uses_injected_planner_and_parses_steps(client):