diff options
Diffstat (limited to 'test/parallel/test-https-strict.js')
-rw-r--r-- | test/parallel/test-https-strict.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/parallel/test-https-strict.js b/test/parallel/test-https-strict.js index f28164a322..060151332d 100644 --- a/test/parallel/test-https-strict.js +++ b/test/parallel/test-https-strict.js @@ -21,17 +21,14 @@ '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'; const assert = require('assert'); - -if (!common.hasCrypto) { - common.skip('missing crypto'); - return; -} const https = require('https'); - const fs = require('fs'); const path = require('path'); |