summaryrefslogtreecommitdiff
path: root/test/parallel/test-https-req-split.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-https-req-split.js')
-rw-r--r--test/parallel/test-https-req-split.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/parallel/test-https-req-split.js b/test/parallel/test-https-req-split.js
index 0abd74be61..d0306cb714 100644
--- a/test/parallel/test-https-req-split.js
+++ b/test/parallel/test-https-req-split.js
@@ -21,13 +21,12 @@
'use strict';
const common = require('../common');
+if (!common.hasCrypto)
+ common.skip('missing crypto');
+
// disable strict server certificate validation by the client
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
-if (!common.hasCrypto) {
- common.skip('missing crypto');
- return;
-}
const https = require('https');
const tls = require('tls');