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) {