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 authored and evanlucas committed Jul 21, 2016
1 parent e8a6a22 commit 61542e8
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 61542e8

Please sign in to comment.