diff options
author | Michaƫl Zasso <mic.besace@gmail.com> | 2016-01-13 21:42:45 +0100 |
---|---|---|
committer | Roman Reiss <me@silverwind.io> | 2016-01-13 23:16:17 +0100 |
commit | d1aabd626428cec65e5f54c04d9e3446d1e4d3b7 (patch) | |
tree | 9a4d4de19204b8b50d496dd6046a897f107bcf4d /test/pummel/test-http-upload-timeout.js | |
parent | ec8e0ae697d96c417bda0bbe5be9712cf5923b1f (diff) | |
download | node-new-d1aabd626428cec65e5f54c04d9e3446d1e4d3b7.tar.gz |
test: fix style issues after eslint update
Replace var keyword with const or let.
PR-URL: https://github.com/nodejs/io.js/pull/2286
Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'test/pummel/test-http-upload-timeout.js')
-rw-r--r-- | test/pummel/test-http-upload-timeout.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/pummel/test-http-upload-timeout.js b/test/pummel/test-http-upload-timeout.js index d1be5311db..6e5a7ed050 100644 --- a/test/pummel/test-http-upload-timeout.js +++ b/test/pummel/test-http-upload-timeout.js @@ -2,10 +2,10 @@ // This tests setTimeout() by having multiple clients connecting and sending // data in random intervals. Clients are also randomly disconnecting until there // are no more clients left. If no false timeout occurs, this test has passed. -var common = require('../common'), - http = require('http'), - server = http.createServer(), - connections = 0; +const common = require('../common'); +const http = require('http'); +const server = http.createServer(); +let connections = 0; server.on('request', function(req, res) { req.socket.setTimeout(1000); |