diff options
Diffstat (limited to 'test/simple/test-https-agent.js')
-rw-r--r-- | test/simple/test-https-agent.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/simple/test-https-agent.js b/test/simple/test-https-agent.js index 41aa03486..34fa15c73 100644 --- a/test/simple/test-https-agent.js +++ b/test/simple/test-https-agent.js @@ -19,9 +19,6 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. - - - if (!process.versions.openssl) { console.error('Skipping because node compiled without OpenSSL.'); process.exit(0); @@ -52,7 +49,12 @@ server.listen(common.PORT, function() { for (var i = 0; i < N; i++) { setTimeout(function() { for (var j = 0; j < M; j++) { - https.get({ port: common.PORT, path: '/' }, function(res) { + https.get({ + path: '/', + port: common.PORT, + rejectUnauthorized: false + }, function(res) { + res.resume(); console.log(res.statusCode); if (++responses == N * M) server.close(); }).on('error', function(e) { |