summaryrefslogtreecommitdiff
path: root/test/parallel/test-https-simple.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-https-simple.js')
-rw-r--r--test/parallel/test-https-simple.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/parallel/test-https-simple.js b/test/parallel/test-https-simple.js
index d1f681ae46..840838b83e 100644
--- a/test/parallel/test-https-simple.js
+++ b/test/parallel/test-https-simple.js
@@ -1,16 +1,15 @@
-if (!process.versions.openssl) {
- console.error('Skipping because node compiled without OpenSSL.');
- process.exit(0);
-}
-
var common = require('../common');
var assert = require('assert');
+if (!common.hasCrypto) {
+ console.log('1..0 # Skipped: missing crypto');
+ process.exit();
+}
+var https = require('https');
+
var fs = require('fs');
var exec = require('child_process').exec;
-var https = require('https');
-
var options = {
key: fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem'),
cert: fs.readFileSync(common.fixturesDir + '/keys/agent1-cert.pem')