Skip to content

Commit 73d3f8c

Browse files
you12724MylesBorins
authored andcommitted
test: change callback function to arrow function
PR-URL: #17698 Reviewed-By: Yosuke Furukawa <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent b6c65af commit 73d3f8c

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)