Skip to content

Commit

Permalink
test: ensure callback runs in test-vm-sigint
Browse files Browse the repository at this point in the history
PR-URL: #7768
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
Trott committed Jul 20, 2016
1 parent f1d804a commit fd02c93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-vm-sigint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}));

0 comments on commit fd02c93

Please sign in to comment.