Commit c40fe2f
Mateusz
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
- tests/unit
- connectors
- core/services
- openai_connector_tests
- services
0 commit comments