test: account for truthy signal in flaky async_hooks tests · nodejs/node@5630170 · GitHub
Skip to content

Commit 5630170

Browse files
RaisinTenmarco-ippolito
authored andcommitted
test: account for truthy signal in flaky async_hooks tests
When the spawned child process gets closed with a signal, the exit code is not set and that is why the exit code assertion was failing. This change adjusts the test to check the signal and if it is truthy, it doesn't assert the exit code and instead logs the signal and continues the rest of the assertions. Refs: #58463 (comment) Refs: #58199 Refs: #58463 Signed-off-by: Darshan Sen <raisinten@gmail.com> PR-URL: #58478 Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 1e5363b commit 5630170

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

test/async-hooks/test-emit-after-on-destroyed.js

Lines changed: 6 additions & 2 deletions

test/async-hooks/test-improper-unwind.js

Lines changed: 6 additions & 2 deletions

0 commit comments

Comments
 (0)