summaryrefslogtreecommitdiff
path: root/test/sequential/test-child-process-fork-getconnections.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-02-15 07:46:58 -0800
committerRich Trott <rtrott@gmail.com>2016-02-18 10:11:26 -0800
commit32f6098eefc7404ef74ca59dfdfceebb009f6f53 (patch)
treeb8d0ae7c02d62843dbc3b0ac6beadb2e628efd4c /test/sequential/test-child-process-fork-getconnections.js
parent7d1d3a6621b9a6599b0ee139964afd6b2ca38c6d (diff)
downloadandroid-node-v8-32f6098eefc7404ef74ca59dfdfceebb009f6f53.tar.gz
android-node-v8-32f6098eefc7404ef74ca59dfdfceebb009f6f53.tar.bz2
android-node-v8-32f6098eefc7404ef74ca59dfdfceebb009f6f53.zip
src,test,tools: modify for more stringent linting
ESLint 2.1.0 is coming. Some lint rules have been tightened. PR-URL: https://github.com/nodejs/node/pull/5214 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: jbergstroem - Johan Bergström <bugs@bergstroem.nu> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'test/sequential/test-child-process-fork-getconnections.js')
-rw-r--r--test/sequential/test-child-process-fork-getconnections.js4
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;
});