From d48a1b99eeedf8e85da5170c25736ed9d2dc8e17 Mon Sep 17 00:00:00 2001 From: you12724 Date: Fri, 15 Dec 2017 21:05:41 +0900 Subject: [PATCH] test: change callback function to arrow function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/17698 Reviewed-By: Yosuke Furukawa Reviewed-By: Gireesh Punathil Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig Reviewed-By: Jon Moss Reviewed-By: Ruben Bridgewater --- test/parallel/test-http-connect.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http-connect.js b/test/parallel/test-http-connect.js index 4b251832ff1c0f..b019c61573e3fa 100644 --- a/test/parallel/test-http-connect.js +++ b/test/parallel/test-http-connect.js @@ -42,9 +42,9 @@ server.on('connect', common.mustCall((req, socket, firstBodyChunk) => { })); })); -server.listen(0, common.mustCall(function() { +server.listen(0, common.mustCall(() => { const req = http.request({ - port: this.address().port, + port: server.address().port, method: 'CONNECT', path: 'google.com:443' }, common.mustNotCall());