Skip to content

Commit d48a1b9

Browse files
you12724MylesBorins
authored andcommittedJan 9, 2018
test: change callback function to arrow function
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>
1 parent a9d83ce commit d48a1b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎test/parallel/test-http-connect.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ server.on('connect', common.mustCall((req, socket, firstBodyChunk) => {
4242
}));
4343
}));
4444

45-
server.listen(0, common.mustCall(function() {
45+
server.listen(0, common.mustCall(() => {
4646
const req = http.request({
47-
port: this.address().port,
47+
port: server.address().port,
4848
method: 'CONNECT',
4949
path: 'google.com:443'
5050
}, common.mustNotCall());

0 commit comments

Comments
 (0)
Please sign in to comment.