From 3fadc809bb1d4faf187e83aaa01862d0c7b2dda3 Mon Sep 17 00:00:00 2001 From: potham Date: Sat, 17 Nov 2018 17:41:00 +0530 Subject: [PATCH] test: replace callback functions with arrow functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/24432 Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Trivikram Kamat --- test/parallel/test-http-client-timeout-option-with-agent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http-client-timeout-option-with-agent.js b/test/parallel/test-http-client-timeout-option-with-agent.js index 26c93ec55bc903..7f20eb4e139e56 100644 --- a/test/parallel/test-http-client-timeout-option-with-agent.js +++ b/test/parallel/test-http-client-timeout-option-with-agent.js @@ -24,7 +24,7 @@ const server = http.createServer(() => { // Never respond. }); -server.listen(0, options.host, function() { +server.listen(0, options.host, () => { doRequest(); }); @@ -50,7 +50,7 @@ function doRequest() { })); req.end(); - setTimeout(function() { + setTimeout(() => { req.destroy(); assert.strictEqual(timeout_events, 1); // Ensure the `timeout` event fired only once.