-
Notifications
You must be signed in to change notification settings - Fork 511
Fix flaky test #4547
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 flaky test #4547
Conversation
I believe this test was flaky due to race conditions caused by the events. Awaiting promises instead should eliminate those races.
Let's see if they all pass. |
Events are so hard to test. I think it might still race flake so we can try using the done() callback in the event to make sure it doesn't end until all the assertions are complete. I'll take a look |
I did also increase the timeout in the release PR while I was adding a skip:
But IIRC it was set to 20m000ms and they're coming in around 10,000ms. Anyway, I'm down to merge this and let upcoming work test the flakiness. They passed on the first try this time! |
Re-running checks to see if they pass again. |
That's essentially what the |
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!
2 failing
Grr, we need more timeout for the |
All right, I think we hit bingo! |
Makes sense, I have some other ideas but LGTM! Thanks. |
I believe this test was flaky due to race conditions caused by the events. Awaiting promises instead should eliminate those races.