Browse Source

test: ensure callback runs in test-vm-sigint

PR-URL: https://github.com/nodejs/node/pull/7768
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
v6.x
Rich Trott 9 years ago
committed by Evan Lucas
parent
commit
61542e82c1
  1. 4
      test/parallel/test-vm-sigint.js

4
test/parallel/test-vm-sigint.js

@ -33,7 +33,7 @@ process.on('SIGUSR2', common.mustCall(() => {
process.kill(child.pid, 'SIGINT');
}));
child.on('close', function(code, signal) {
child.on('close', common.mustCall((code, signal) => {
assert.strictEqual(signal, null);
assert.strictEqual(code, 0);
});
}));

Loading…
Cancel
Save