-
-
Notifications
You must be signed in to change notification settings - Fork 601
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
Using satisfyAllOf with toEventually causes expression to be evaluated multiple times #529
Comments
Async expectations (
So this is an edge case and I'm not sure if this is an expected behavior or a bug. |
More precisely, having a side effect within a expression closure for async expectations is not an intended usage. |
Maybe having a caching expression within |
If memory is not letting me down this happened while attempting to create custom ReactiveSwift assertions using the same approach used by |
This is similar to #360. |
Bumping this to the next (major?) release in favor of getting async/await support out the door sooner. |
Doing something like below results in expression being evaluated multiple times with
"foo"
being printed many times. WithsatisfyAllOf
removed everything works as expected.This must be happening because
postNotifications
has explicit logic for evaluating expression only once, whilesatisfyAllOf
doesn't.The text was updated successfully, but these errors were encountered: