test: change anonymous closure functions to arrow functions
PR-URL: https://github.com/nodejs/node/pull/24418 Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
278126c4e8
commit
e25e8b6886
@ -62,10 +62,10 @@ server.once('request', common.mustCall((req, res) => {
|
||||
|
||||
server.listen(0, function() {
|
||||
// just make a request, other tests handle responses
|
||||
http.get({ port: this.address().port }, function(res) {
|
||||
http.get({ port: this.address().port }, (res) => {
|
||||
res.resume();
|
||||
// do it again to test .end(Buffer);
|
||||
http.get({ port: server.address().port }, function(res) {
|
||||
http.get({ port: server.address().port }, (res) => {
|
||||
res.resume();
|
||||
server.close();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user