Skip to content
This repository has been archived by the owner on Jan 2, 2020. It is now read-only.

Commit

Permalink
For async example, describe adding wait
Browse files Browse the repository at this point in the history
  • Loading branch information
jonreid committed Feb 11, 2019
1 parent 8d28ac9 commit 5d7a0d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func test_executingActionForOKButton_shouldDoSomething() {

### How can I test an alert that's presented using DispatchQueue.main?

Create an expectation in your test case. Then fulfill it in the alert verifier's completion block.
Create an expectation in your test case. Fulfill it in the alert verifier's completion block. Add a short wait at the start of the Assert phase.

```swift
func test_showAlertOnMainDispatchQueue_shouldDoSomething() {
Expand Down

0 comments on commit 5d7a0d4

Please sign in to comment.