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>
This commit is contained in:
Sarath Govind K K authored and Shelley Vohr committed 2019-01-28 23:11:39 -08:00
1 parent b827db0ef3
commit 44d9084f66
1 file changed
+2 -2
@@ -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) {