You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have found a temporary workaround, until this is officially supported.
Mark the test as async
Await the Mockable declaration outside of the eventually block
Call verify inside eventually with the already obtained declaration
func test_asyncEventuallyWorkaround()async->{// Casting to Mockable is required to disambiguate between the real method and the given/verify DSL methodletsomeCall=await someMock.someFunc()asMockableeventually{verify(someCall).wasCalled()}}
New Feature Request Checklist
Overview
Looking to use
eventually
to verify the execution of async methods:The text was updated successfully, but these errors were encountered: