Uh oh!
There was an error while loading. Please reload this page.
test: fix flaky test-async-wrap-uncaughtexception - #16598
Conversation
It's possible for `beforeExit` to be emitted more than once if work is scheduled by its listeners. Accommodate this fact in the test. Fixes: nodejs#16210
Trott
commented
Oct 30, 2017
ping @joaocgreis@addaleax@joyeecheung I want to make sure this is the correct fix and not working around a legitimate bug in core that needs fixing. See #16210 for background/details. |
Trott
commented
Oct 30, 2017
Trott
commented
Oct 30, 2017
@nodejs/testing |
joyeecheung
left a comment
There was a problem hiding this comment.
The process.removeAllListeners('uncaughtException'); in L14 can be removed now?
refack
left a comment
There was a problem hiding this comment.
Not convinced this is the right fix.
refack
commented
Oct 30, 2017
I'm not sure this is the right fix.
|
addaleax
commented
Oct 30, 2017
I kind of have to side with @refack here – if this is a fix, then it’s not obvious where the second uncaught exception is coming from. From the looks of it, that would not be a bug in the test but rather a bug |
joyeecheung
commented
Oct 31, 2017
refack
commented
Oct 31, 2017
@joyeecheung testing (refack/node@master...refack:pr/16412) |
refack
commented
Oct 31, 2017
OK so there is definatly a change/regression. Seeing this locally with officialy build binaries: 8.6.0 ✔️8.7.0 🔴 |
Trott
commented
Nov 1, 2017
@refack |
Trott
commented
Nov 2, 2017
I think I found the commit that is the likely culprit. See #16210 (comment) Closing this for now. |
It's possible for
beforeExitto be emitted more than once if work isscheduled by its listeners. Accommodate this fact in the test.
Fixes: #16210
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test async-wrap