diff --git a/test/parallel/test-child-process-kill.js b/test/parallel/test-child-process-kill.js index 00aab44dd1318d..1025c69ba1ac28 100644 --- a/test/parallel/test-child-process-kill.js +++ b/test/parallel/test-child-process-kill.js @@ -32,8 +32,10 @@ cat.stderr.on('end', common.mustCall()); cat.on('exit', common.mustCall((code, signal) => { assert.strictEqual(code, null); assert.strictEqual(signal, 'SIGTERM'); + assert.strictEqual(cat.signalCode, 'SIGTERM'); })); +assert.strictEqual(cat.signalCode, null); assert.strictEqual(cat.killed, false); cat.kill(); assert.strictEqual(cat.killed, true);