Skip to content

Commit

Permalink
test: change anonymous closure functions to arrow functions
Browse files Browse the repository at this point in the history
PR-URL: #24418
Reviewed-By: Ouyang Yadong <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
oyenamit authored and codebytere committed Jan 29, 2019
1 parent 5c3736a commit 4425926
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http-res-write-end-dont-take-array.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit 4425926

Please sign in to comment.