test: change callback function to arrow function

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
you12724 2017-12-15 21:05:41 +09:00 committed by Ruben Bridgewater
parent 37d2773bed
commit 4fd70ceeac
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -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());