mockingbird
mockingbird copied to clipboard
Eventually does not support async methods
New Feature Request Checklist
- [x] I searched the existing GitHub feature requests
Overview
Looking to use eventually
to verify the execution of async methods:
Task {
guard bird.canFly else { return }
await bird.fly()
}
eventually {
verify(bird.canFly).wasCalled()
verify(await bird.fly()).wasCalled()
}
waitForExpectations(timeout: 1)