From cfee060aff4284664054b22d7fbbd7ce9f433d80 Mon Sep 17 00:00:00 2001 From: Sarath Govind K K Date: Mon, 19 Nov 2018 11:07:23 +0530 Subject: [PATCH] test: replcae anonymous closure with arrow function PR-URL: https://github.com/nodejs/node/pull/24476 Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: Sakthipriyan Vairamani --- test/known_issues/test-http-path-contains-unicode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/known_issues/test-http-path-contains-unicode.js b/test/known_issues/test-http-path-contains-unicode.js index a51b07210214b9..d899fab07c43bb 100644 --- a/test/known_issues/test-http-path-contains-unicode.js +++ b/test/known_issues/test-http-path-contains-unicode.js @@ -23,9 +23,9 @@ const server = http.createServer(common.mustCall(function(req, res) { })); -server.listen(0, function() { +server.listen(0, () => { http.request({ - port: this.address().port, + port: server.address().port, path: expected, method: 'GET' }, common.mustCall(function(res) {