diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2017-03-08 13:39:57 +0100 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2017-04-18 20:08:39 -0400 |
commit | 7a1920dc84bd68320dd2a19e071fff3a8eac4ea2 (patch) | |
tree | 3aee5c18dfa78c30628ed0cf37bcad9040cd3a89 | |
parent | 8ed18a1429e62d19bffc04b696a517e18c7475b2 (diff) | |
download | node-new-7a1920dc84bd68320dd2a19e071fff3a8eac4ea2.tar.gz |
test: add hasCrypto check to tls-socket-close
Currently test-tls-socket-close will fail if node
was built using --without-ssl. This commit adds a check to
verify is crypto support exists and if not skip this test.
PR-URL: https://github.com/nodejs/node/pull/11911
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
-rw-r--r-- | test/parallel/test-tls-socket-close.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/parallel/test-tls-socket-close.js b/test/parallel/test-tls-socket-close.js index 440c0c4ff7..4e7382f340 100644 --- a/test/parallel/test-tls-socket-close.js +++ b/test/parallel/test-tls-socket-close.js @@ -1,5 +1,9 @@ 'use strict'; const common = require('../common'); +if (!common.hasCrypto) { + common.skip('missing crypto'); + return; +} const assert = require('assert'); const tls = require('tls'); |