test: refactor test-child-process-send-type-error · nodejs/node@071ecb0 · GitHub
Skip to content

Commit 071ecb0

Browse files
Trottaddaleax
authored andcommitted
test: refactor test-child-process-send-type-error
* Add exit listener to child process to check return code. Previously, child process faiilure would not cause the test to fail. * Use common.mustNotCall() to guarantee callback is not invoked. * Insert blank line per test writing guide. PR-URL: #13904 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
1 parent f1d92fb commit 071ecb0

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

test/parallel/test-child-process-send-type-error.js

Lines changed: 8 additions & 2 deletions

0 commit comments

Comments
 (0)