Jeremy W. Sherman: XCTestExpectation simplifies testing callback-style code, but some of its design choices make tests using it fragile unless they’re mitigated: It explodes if everything works right but later than you expected. It explodes if everything works right more than once. This article presents two concrete mitigations: Use weak references to ensure the expectation … Continue reading XCTestExpectation Gotchas
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed