mirror of https://github.com/nodejs/node.git
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
parent
9c7b87b9a1
commit
c5b326a0fa
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue