mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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>
This commit is contained in:
1 parent
e8a6a223ec
commit
61542e82c1
1 file changed
+2
-2
@@ -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);
|
||||
});
|
||||
}));
|
||||
Reference in new issue
Block a user