AntiPattern

Async Context Contract Breaks

async-contract-and-lifecycle-mismatch

Async mechanisms fail because a mock/handler/factory returns the wrong callable shape (coroutine vs async context manager), or because async lifecycle is reused across tests, causing incompatible event-loop state and follow-on routing/type errors.

Async Context Contract Breaks - inErrata Knowledge Graph | Inerrata