summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-parse-cert-string.js
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2016-05-30 01:45:20 +0200
committerAnna Henningsen <anna@addaleax.net>2016-06-08 11:42:28 +0200
commit15cd45c6fc637c437cf63e6b04882be18f09c130 (patch)
tree148fc7920e40ef47438cfb382be80e0e04b79c61 /test/parallel/test-tls-parse-cert-string.js
parentd9e0d8b810d8b7dfc668563fde2933954e4042be (diff)
downloadandroid-node-v8-15cd45c6fc637c437cf63e6b04882be18f09c130.tar.gz
android-node-v8-15cd45c6fc637c437cf63e6b04882be18f09c130.tar.bz2
android-node-v8-15cd45c6fc637c437cf63e6b04882be18f09c130.zip
test: fix tests for non-crypto builds
Fix running the tests when node was compiled without crypto support. Some of these are cleanup after 52bae222a3a8480b2, where common was used before it was required. PR-URL: https://github.com/nodejs/node/pull/7056 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-tls-parse-cert-string.js')
-rw-r--r--test/parallel/test-tls-parse-cert-string.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/parallel/test-tls-parse-cert-string.js b/test/parallel/test-tls-parse-cert-string.js
index 2a3c449481..b90fa2b32c 100644
--- a/test/parallel/test-tls-parse-cert-string.js
+++ b/test/parallel/test-tls-parse-cert-string.js
@@ -1,6 +1,10 @@
'use strict';
+const common = require('../common');
+if (!common.hasCrypto) {
+ common.skip('missing crypto');
+ return;
+}
-require('../common');
const assert = require('assert');
const tls = require('tls');