You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_runner: global after not run if handles are open #49056
I'm guessing this is because the test runner uses the beforeExit event, and the ref'ed handle prevents that from being emitted. We'll need to move to a different mechanism for detecting when all of the tests have run.
This is kind of expected since the test runner finishes ASAP now instead of once the process is getting ready to exit. I'll have to keep looking into how to best handle this case.
Reacted by Matteo Collina, Benjamin Gruenbaum and Moshe Atlow
Activity
cjihrig commentedon Aug 7, 2023
I'm guessing this is because the test runner uses the
beforeExitevent, and the ref'ed handle prevents that from being emitted. We'll need to move to a different mechanism for detecting when all of the tests have run.mcollina commentedon Aug 7, 2023
I guessed as much, however the above pattern is really good.
cjihrig commentedon Aug 7, 2023
I looked at this really quickly. The good news is that it's pretty simple to fix this case:
The bad news is that a couple tests are failing. I think it's just related to handling asynchronous activity after the tests finish running like:
This is kind of expected since the test runner finishes ASAP now instead of once the process is getting ready to exit. I'll have to keep looking into how to best handle this case.
MoLow commentedon Aug 11, 2023
CC @giltayar we might have discussed this use-case or a similar one in Node.TLV
test_runner: run global after() hook earlier
test_runner: run global after() hook earlier
test_runner: run global after() hook earlier
test_runner: run global after() hook earlier
test_runner: run global after() hook earlier