mockingbird icon indicating copy to clipboard operation
mockingbird copied to clipboard

Eventually does not support async methods

Open jacobhzen opened this issue 2 years ago • 2 comments

New Feature Request Checklist

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)

jacobhzen avatar Apr 18 '22 23:04 jacobhzen