Skip to content

Commit c40fe2f

Browse files
author
Mateusz
committed
Fix xdist timeout/stall hazards in recently changed tests
- Replace leaked real httpx.AsyncClient with AsyncMock in backend service targeted tests to prevent event-loop resource leaks on Windows workers. - Convert asyncio.run() calls to native async/await in async tests to avoid nested event-loop conflicts with xdist worker loop management. - Replace unbounded asyncio.Event().wait() in Gemini ACP cancellation test with owned event handle to prevent edge-case hangs. - Add explicit cwd save/restore in project directory resolution tests to prevent cwd bleed across xdist workers. - Save and restore sys.modules deletions in backend autodiscovery and import integration tests to prevent module-cache corruption across workers. - Add reset_backend_discovery_state() in teardown for clean import fixtures.
1 parent 6072ec4 commit c40fe2f

6 files changed

Lines changed: 2630 additions & 2586 deletions

File tree

0 commit comments

Comments
 (0)