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
It turns out the callback is never run. In my case try returns with an error, which is thrown from getItem.
I ended up with this solution, which is suboptimal:
varcaughtError:Error?do{letitem=tryawait map.getItem(with:"āž$*")XCTAssertNil(item)}catch{
caughtError = error
}XCTExpectFailure("test fails for the time being"){XCTAssertNil(caughtError)}
Side note: XCTExpectFailure doesn't run the async closure as well.
soumyamahunt, rhysforyou, yanhuang1227, lukaskubanek, takeshi-p0601 and 4 more