Skip to content

Commit

Permalink
test: remove unused var from child-process-fork
Browse files Browse the repository at this point in the history
`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: #7599
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
  • Loading branch information
Trott authored and evanlucas committed Jul 15, 2016
1 parent e1aedbf commit 5192bed
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/parallel/test-child-process-fork.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5192bed

Please sign in to comment.