test: refactor http-https-default-ports

Use arrow functions.

PR-URL: https://github.com/nodejs/node/pull/19130
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
Ken Lin 2018-03-04 20:12:03 +08:00 committed by Gibson Fahnestock
parent 2b3f46c989
commit 06e09b6171
No known key found for this signature in database
GPG Key ID: B01FBB92821C587A

View File

@ -30,10 +30,10 @@ const https = require('https');
const http = require('http');
https.get(`https://${addresses.INET_HOST}/`, common.mustCall(function(res) {
https.get(`https://${addresses.INET_HOST}/`, common.mustCall((res) => {
res.resume();
}));
http.get(`http://${addresses.INET_HOST}/`, common.mustCall(function(res) {
http.get(`http://${addresses.INET_HOST}/`, common.mustCall((res) => {
res.resume();
}));