Waits until the test calls release.
Future<void> wait() { if (!_entered.isCompleted) _entered.complete(); return _released.future; }