diff --git a/test/instrumentation/modules/http2.test.js b/test/instrumentation/modules/http2.test.js index 949af262cc..13d475c584 100644 --- a/test/instrumentation/modules/http2.test.js +++ b/test/instrumentation/modules/http2.test.js @@ -455,6 +455,7 @@ test('handling HTTP/1.1 request to http2.createSecureServer with allowHTTP1:true // Make an HTTP/1.1 request. var getOpts = { + agent: new https.Agent(), protocol: 'https:', host: 'localhost', port: port, diff --git a/test/parsers.test.js b/test/parsers.test.js index 2b80cba93d..4abe20b86f 100644 --- a/test/parsers.test.js +++ b/test/parsers.test.js @@ -239,6 +239,7 @@ function onRequest (cb) { server.listen(function () { var opts = { + agent: new http.Agent(), port: server.address().port } var req = http.request(opts, function (res) {