test: speed up test suite

This commit is contained in:
chengyongru
2026-06-25 16:10:28 +08:00
committed by Xubin Ren
parent 123384975e
commit 4378944459
6 changed files with 20 additions and 6 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ def isolate_webui_workspace_state(tmp_path, monkeypatch) -> None:
async def _http_get(url: str, headers: dict[str, str] | None = None) -> httpx.Response:
"""Run GET in a thread to avoid blocking the asyncio loop shared with websockets."""
return await asyncio.to_thread(
functools.partial(httpx.get, url, headers=headers or {}, timeout=5.0)
functools.partial(httpx.get, url, headers=headers or {}, timeout=5.0, trust_env=False)
)