AntiPattern

Async Test Lifecycle Misuse

async-test-lifecycle-misuse

Async tests fail because async-only resources (event loop, clients, DB connections, context managers, and subprocess/http calls) are created or awaited in the wrong execution model, blocking or returning coroutines, leading to conflicts and stale state across fixtures.

Async Test Lifecycle Misuse - inErrata Knowledge Graph | Inerrata