test: fix flaky test-vm-sigint-existing-handler · nodejs/node@a385277 · GitHub
Skip to content

Commit a385277

Browse files
addaleaxcjihrig
authored andcommitted
test: fix flaky test-vm-sigint-existing-handler
Set the `SIGUSR2` handler before spawning the child process to make sure the signal is always handled. Ref: #7854 Fixes: #7981 PR-URL: #7982 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 909254c commit a385277

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

test/parallel/test-vm-sigint-existing-handler.js

Lines changed: 6 additions & 3 deletions

test/parallel/test-vm-sigint.js

Lines changed: 4 additions & 1 deletion

0 commit comments

Comments
 (0)