-
Notifications
You must be signed in to change notification settings - Fork 41
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: increase timeout and use tearDownNodes #1592
Conversation
size-limit report 📦
|
Seems that it helps a little but doesn't fix the issue fully. Still 1/3 go waku jobs failed |
!!nwaku && (await nwaku.stop()); | ||
!!waku && waku.stop().catch((e) => console.log("Waku failed to stop", e)); | ||
this.timeout(10000); | ||
tearDownNodes([nwaku], [waku]); |
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.
Is it only this spec
that is failing with such a reason?
Did you check the nwaku logs see if there is any indication of the slow shutting down? |
No, I just saw that the default timeout of 2000 ms is hit and increasing it to 10000 helps. My guess is that is somehow related to the |
Might be a bug in the |
are we tracking this bug somewhere? |
…/flaky-teardown
Had a 2nd look and turns out that stop was fired imediately after the message was send and that was the reason for the failures. Adding a small delay seems to fix the issue |
Problem
There are some tests that consistently fail during the CI at teardown (stopping nodes)
Solution
Added a bigger timeout and used the tearDownNodes function that better handles this job