diff options
Diffstat (limited to 'test/sequential/test-child-process-fork-getconnections.js')
-rw-r--r-- | test/sequential/test-child-process-fork-getconnections.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sequential/test-child-process-fork-getconnections.js b/test/sequential/test-child-process-fork-getconnections.js index f7bb9f5eea..8928ef6c74 100644 --- a/test/sequential/test-child-process-fork-getconnections.js +++ b/test/sequential/test-child-process-fork-getconnections.js @@ -56,9 +56,9 @@ if (process.argv[2] === 'child') { let disconnected = 0; server.on('listening', function() { - let j = count, client; + let j = count; while (j--) { - client = net.connect(common.PORT, '127.0.0.1'); + const client = net.connect(common.PORT, '127.0.0.1'); client.on('close', function() { disconnected += 1; }); |