If you are practicing unit testing, sooner or later you’ll run across testing async code. Writing such tests can be a challenge for the next reasons: False positives and negatives. Async code ends after the unit test does, causing misleading test results. Flakiness. Async code executes with different speed on different machines, bringing a subtle time dependency into a test suite. A common symptom
![Unit Testing Asynchronous Code in Swift](https://cdn-ak-scissors.b.st-hatena.com/image/square/4a7a507bb9aa40d245380efc47e3903c7560b552/height=288;version=1;width=512/https%3A%2F%2Fwww.vadimbulavin.com%2Fassets%2Fimages%2Fposts%2Funit-testing-async-code-in-swift-cover.png)