0934a45fcd
Replace `await anyio.sleep(0.01)` in both `test_stateful_session_cleanup_on_graceful_exit` and `test_stateful_session_cleanup_on_exception` with a polling loop that checks the exact condition (`session_id in manager._server_instances`) with `sleep(0)` yields, protected by `fail_after(5)`.