diff options
author | Rich Trott <rtrott@gmail.com> | 2016-07-16 14:14:07 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-07-19 21:02:54 -0700 |
commit | fd02c93d29da1ff18f33cc561bdddce2facd28db (patch) | |
tree | a968c8dfc1f509664f6b4c325f7cdb3ceb12f6b9 /test | |
parent | f1d804a753480b931ca65cb17e19428631b2ec31 (diff) | |
download | android-node-v8-fd02c93d29da1ff18f33cc561bdddce2facd28db.tar.gz android-node-v8-fd02c93d29da1ff18f33cc561bdddce2facd28db.tar.bz2 android-node-v8-fd02c93d29da1ff18f33cc561bdddce2facd28db.zip |
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>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-vm-sigint.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-vm-sigint.js b/test/parallel/test-vm-sigint.js index 5260a8464f..11497733ce 100644 --- a/test/parallel/test-vm-sigint.js +++ b/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); -}); +})); |