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.
The text was updated successfully, but these errors were encountered:
Hello,
I'm trying to use
XCTAssertNoThrow
method with async function. I'm trying to use it as this:It turns out the callback is never run. In my case
try
returns with an error, which is thrown fromgetItem
.I ended up with this solution, which is suboptimal:
Side note:
XCTExpectFailure
doesn't run the async closure as well.The text was updated successfully, but these errors were encountered: