Skip to content

Commit dbdfc5d

Browse files
committed
test: add signal check to test-esm-cjs-main
PR-URL: #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]>
1 parent eef6504 commit dbdfc5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/es-module/test-esm-cjs-main.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ child.stdout.on('data', (data) => {
2121
assert.strictEqual(data.toString(), 'executed\n');
2222
validatedExecution = true;
2323
});
24-
child.on('close', common.mustCall((code, stdout) => {
24+
child.on('close', common.mustCall((code, signal) => {
2525
assert.strictEqual(validatedExecution, true);
2626
assert.strictEqual(code, 0);
27+
assert.strictEqual(signal, null);
2728
}));

0 commit comments

Comments
 (0)