Skip to content

Commit

Permalink
test: add signal check to test-esm-cjs-main
Browse files Browse the repository at this point in the history
PR-URL: nodejs#25073
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Anto Aravinth <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Daijiro Wachi <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
Trott authored and refack committed Jan 10, 2019
1 parent 93fe978 commit 8518a3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/es-module/test-esm-cjs-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ child.stdout.on('data', (data) => {
assert.strictEqual(data.toString(), 'executed\n');
validatedExecution = true;
});
child.on('close', common.mustCall((code, stdout) => {
child.on('close', common.mustCall((code, signal) => {
assert.strictEqual(validatedExecution, true);
assert.strictEqual(code, 0);
assert.strictEqual(signal, null);
}));

0 comments on commit 8518a3f

Please sign in to comment.