diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2017-06-15 07:21:03 +0200 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2017-06-17 18:54:16 +0200 |
commit | 7bdb5ca6207dbfc2ef9b253dd68588c3cf8b1cff (patch) | |
tree | 964bb44db6942f392c2d7e93cb3625bbb16852cb /test/parallel/test-tls-wrap-econnreset-localaddress.js | |
parent | fcd82e760106ed7bd7aea634b65fe9faac7c8e7c (diff) | |
download | node-new-7bdb5ca6207dbfc2ef9b253dd68588c3cf8b1cff.tar.gz |
test: add crypto check to test-tls-wrap-econnreset
Currently, there are a few test-tls-wrap-econnreset test that fail when
Node is configured --without-ssl:
Error: Node.js is not compiled with openssl crypto support
This commit adds crypto checks and skips these tests if no crypto
support unavailable.
PR-URL: https://github.com/nodejs/node/pull/13691
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-tls-wrap-econnreset-localaddress.js')
-rw-r--r-- | test/parallel/test-tls-wrap-econnreset-localaddress.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/parallel/test-tls-wrap-econnreset-localaddress.js b/test/parallel/test-tls-wrap-econnreset-localaddress.js index 981e57248a..5052d4377a 100644 --- a/test/parallel/test-tls-wrap-econnreset-localaddress.js +++ b/test/parallel/test-tls-wrap-econnreset-localaddress.js @@ -1,6 +1,10 @@ 'use strict'; const common = require('../common'); +if (!common.hasCrypto) { + common.skip('missing crypto'); + return; +} const assert = require('assert'); const net = require('net'); const tls = require('tls'); |