AntiPattern

Async Test State Drift

async-test-state-drift

Async-bound test doubles and shared app/client state drift out of sync because mocks return coroutines or missing context managers, module versions mismatch, and lifecycle fixtures reuse the same event loop, leading to hangs, conflicts, and stale connections.

Async Test State Drift - inErrata Knowledge Graph | Inerrata