-
Notifications
You must be signed in to change notification settings - Fork 589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What's the way to use assertSnapshot
in async test?
#822
Comments
The problem is the use of XCTWaiter.wait inside of verifySnapshot. Using the synchronous wait function in an asynchronous context is a known issue (that's why Apple introduced |
Is this crash |
Actually, I did find that marking all the |
Please look below example of async test. Test with
XCTAssertEqual
works as expected but same test withassertSnapshot
crashes.What's the way to use
assertSnapshot
in async test?The text was updated successfully, but these errors were encountered: