diff options
author | cjihrig <cjihrig@gmail.com> | 2016-12-30 15:42:06 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2017-01-02 10:04:13 -0500 |
commit | 1d11b47aa7bcd9056ce9f67d649f88121feb7654 (patch) | |
tree | 3e20530680b673fd07c526afc5963c3f6140af04 /test/parallel/test-http-client-timeout-agent.js | |
parent | 6540fb9f1f02fe1d9a4a783cc768826d5e759aad (diff) | |
download | android-node-v8-1d11b47aa7bcd9056ce9f67d649f88121feb7654.tar.gz android-node-v8-1d11b47aa7bcd9056ce9f67d649f88121feb7654.tar.bz2 android-node-v8-1d11b47aa7bcd9056ce9f67d649f88121feb7654.zip |
test: avoid assigning this to variables
This commit removes assignments of this to a variable in the
tests.
PR-URL: https://github.com/nodejs/node/pull/10548
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'test/parallel/test-http-client-timeout-agent.js')
-rw-r--r-- | test/parallel/test-http-client-timeout-agent.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/parallel/test-http-client-timeout-agent.js b/test/parallel/test-http-client-timeout-agent.js index c741c6793d..4ed217c171 100644 --- a/test/parallel/test-http-client-timeout-agent.js +++ b/test/parallel/test-http-client-timeout-agent.js @@ -50,9 +50,8 @@ server.listen(0, options.host, function() { this.destroy(); }); req.setTimeout(50, function() { - var req = this; console.log('req#' + this.id + ' timeout'); - req.abort(); + this.abort(); requests_done += 1; }); req.end(); |