diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-04-28 04:06:42 +0300 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-05-05 17:39:05 +0300 |
commit | 8b76c3e60c7b5c274c757257580a2c0faae69097 (patch) | |
tree | a9f686995887dbeb0b5c5b23c5f3188987c99b2e /test/parallel/test-http-client-abort.js | |
parent | 6bcf65d4a788a73b3c3f27d75796609f948f7885 (diff) | |
download | android-node-v8-8b76c3e60c7b5c274c757257580a2c0faae69097.tar.gz android-node-v8-8b76c3e60c7b5c274c757257580a2c0faae69097.tar.bz2 android-node-v8-8b76c3e60c7b5c274c757257580a2c0faae69097.zip |
test: reduce string concatenations
PR-URL: https://github.com/nodejs/node/pull/12735
Refs: https://github.com/nodejs/node/pull/12455
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Diffstat (limited to 'test/parallel/test-http-client-abort.js')
-rw-r--r-- | test/parallel/test-http-client-abort.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-http-client-abort.js b/test/parallel/test-http-client-abort.js index 549344f0cd..eaf4a05e6f 100644 --- a/test/parallel/test-http-client-abort.js +++ b/test/parallel/test-http-client-abort.js @@ -36,7 +36,7 @@ const server = http.Server(function(req, res) { // event like "aborted" or something. req.on('aborted', function() { clientAborts++; - console.log('Got abort ' + clientAborts); + console.log(`Got abort ${clientAborts}`); if (clientAborts === N) { console.log('All aborts detected, you win.'); server.close(); @@ -52,10 +52,10 @@ server.listen(0, function() { console.log('Server listening.'); for (let i = 0; i < N; i++) { - console.log('Making client ' + i); - const options = { port: this.address().port, path: '/?id=' + i }; + console.log(`Making client ${i}`); + const options = { port: this.address().port, path: `/?id=${i}` }; const req = http.get(options, function(res) { - console.log('Client response code ' + res.statusCode); + console.log(`Client response code ${res.statusCode}`); res.resume(); if (++responses === N) { |