Skip to content

Commit

Permalink
test: convert anonymous function to arrow function
Browse files Browse the repository at this point in the history
PR-URL: #39604
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
  • Loading branch information
himadriganguly authored and danielleadams committed Aug 16, 2021
1 parent 9e38fc6 commit 1962c7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http-write-head-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const http = require('http');
res.end();
}));

server.listen(0, common.mustCall(function() {
server.listen(0, common.mustCall(() => {
http.get({ port: server.address().port }, common.mustCall((res) => {
assert.strictEqual(res.headers.test, '1');
assert.strictEqual(res.headers.test2, '2');
Expand All @@ -51,7 +51,7 @@ const http = require('http');
res.end();
}));

server.listen(0, common.mustCall(function() {
server.listen(0, common.mustCall(() => {
http.get({ port: server.address().port }, common.mustCall((res) => {
res.resume().on('end', common.mustCall(() => {
server.close();
Expand Down

0 comments on commit 1962c7c

Please sign in to comment.