summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-fork.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-07-07 15:35:51 -0700
committerRich Trott <rtrott@gmail.com>2016-07-10 16:29:44 -0700
commit7b0cf87101407f43e2ba7e76572adac8cf501238 (patch)
tree4014e9e0e52fd5aa7cf88e74de4a55bca83f0d6f /test/parallel/test-child-process-fork.js
parentbc5b89f9ca467f0bea81ef5af19e7db3f75f234c (diff)
downloadandroid-node-v8-7b0cf87101407f43e2ba7e76572adac8cf501238.tar.gz
android-node-v8-7b0cf87101407f43e2ba7e76572adac8cf501238.tar.bz2
android-node-v8-7b0cf87101407f43e2ba7e76572adac8cf501238.zip
test: remove unused var from child-process-fork
`messageCount` is assigned, but never used. Remove it. (This was missed by the linter in previous versions of ESLint but is flagged by the current version. Updating the linter is contingent on this change or some similar remedy landing.) PR-URL: https://github.com/nodejs/node/pull/7599 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
Diffstat (limited to 'test/parallel/test-child-process-fork.js')
-rw-r--r--test/parallel/test-child-process-fork.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/test/parallel/test-child-process-fork.js b/test/parallel/test-child-process-fork.js
index f105bd5d57..ab253d04c2 100644
--- a/test/parallel/test-child-process-fork.js
+++ b/test/parallel/test-child-process-fork.js
@@ -7,12 +7,9 @@ var args = ['foo', 'bar'];
var n = fork(common.fixturesDir + '/child-process-spawn-node.js', args);
assert.deepStrictEqual(args, ['foo', 'bar']);
-var messageCount = 0;
-
n.on('message', function(m) {
console.log('PARENT got message:', m);
assert.ok(m.foo);
- messageCount++;
});
// https://github.com/joyent/node/issues/2355 - JSON.stringify(undefined)