also you can forget to use
expectation.fulfill()
, that in some chain never called,
when you use:
let expectation = self.expectation(description: "testCurrentUser")
waitForExpectations(timeout: 5, handler: nil)
Post
Replies
Boosts
Views
Activity
Maybe you use in your XCTestCase
override func setUp(completion: @escaping ((any Error)?) -> Void) { }
override func tearDown(completion: @escaping ((any Error)?) -> Void) {}
and never call the completion(), to let it continue