test: replcae anonymous closure with arrow function

PR-URL: https://github.com/nodejs/node/pull/24476
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
pull/24562/head
Sarath Govind K K 2018-11-19 11:07:23 +05:30 committed by Daniel Bevenius
parent 9c7b87b9a1
commit c5b326a0fa
1 changed files with 2 additions and 2 deletions

View File

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