-
Notifications
You must be signed in to change notification settings - Fork 61
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
fix: use await instead of waitFor in async tests #2690
Conversation
You can find the image built from this PR at
Built from 2ee8958 |
You can find the image built from this PR at
Built from 2ee8958 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks! 💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
Interesting, What is the reason for crash? Is there some bug in waitFor macro or the way use it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds very interesting, would be good understand the reason! Thanks!
So in principle, Even on its implementation there's a comment stating not to be called from an Regarding the crash we were having, I haven't yet figured out what exactly was going on that caused it. There were other tests with In our case, we figured out that the crash happened when trying to write to global variables right after the |
127c384
to
907b4d6
Compare
Description
In async functions, we should use
await
instead ofwaitFor
. The usage ofwaitFor
in async tests can generate crashes.Changes
waitFor
forawait
in async tests