Permalink
Browse files

test: add signal check to test-esm-cjs-main

PR-URL: #25073
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
Trott authored and MylesBorins committed Dec 16, 2018
1 parent 6f3b421 commit 1f45b2370d5a34f4bc1f2037a9042c8bcbaa7884
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/es-module/test-esm-cjs-main.js
@@ -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 1f45b23

Please sign in to comment.