Skip to content

Commit

Permalink
test: change callback function to arrow function
Browse files Browse the repository at this point in the history
PR-URL: #17698
Reviewed-By: Yosuke Furukawa <yosuke.furukawa@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
you12724 authored and MylesBorins committed Jan 9, 2018
1 parent a9d83ce commit d48a1b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http-connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ server.on('connect', common.mustCall((req, socket, firstBodyChunk) => {
}));
}));

server.listen(0, common.mustCall(function() {
server.listen(0, common.mustCall(() => {
const req = http.request({
port: this.address().port,
port: server.address().port,
method: 'CONNECT',
path: 'google.com:443'
}, common.mustNotCall());
Expand Down

0 comments on commit d48a1b9

Please sign in to comment.