summaryrefslogtreecommitdiff
path: root/test/parallel/test-http2-util-headers-list.js
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2017-12-26 09:58:43 +0100
committerDaniel Bevenius <daniel.bevenius@gmail.com>2017-12-29 06:09:57 +0100
commit6fc9c331c624ceef5efcce19b1d610340e1f39be (patch)
tree62cf90c8f2dd51b53e506c23f5c3d8765d07a137 /test/parallel/test-http2-util-headers-list.js
parentacbe00792d3e73ded9d309002974a095e1433afe (diff)
downloadandroid-node-v8-6fc9c331c624ceef5efcce19b1d610340e1f39be.tar.gz
android-node-v8-6fc9c331c624ceef5efcce19b1d610340e1f39be.tar.bz2
android-node-v8-6fc9c331c624ceef5efcce19b1d610340e1f39be.zip
test: add hasCrypto when using binding('crypto')
Currently, when configured --without-ssl tests that use process.binding('crypto') fail with the following error: === release test-accessor-properties === Path: parallel/test-accessor-properties node/test/parallel/test-accessor-properties.js:16 const crypto = process.binding('crypto'); ^ Error: No such module: crypto at Object.<anonymous> (test-accessor-properties.js:16:24) at Module._compile (module.js:660:30) at Object.Module._extensions..js (module.js:671:10) at Module.load (module.js:577:32) at tryModuleLoad (module.js:517:12) at Function.Module._load (module.js:509:3) at Function.Module.runMain (module.js:701:10) at startup (bootstrap_node.js:194:16) at bootstrap_node.js:645:3 This commit adds a hasCrypto check. PR-URL: https://github.com/nodejs/node/pull/17867 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'test/parallel/test-http2-util-headers-list.js')
-rw-r--r--test/parallel/test-http2-util-headers-list.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/parallel/test-http2-util-headers-list.js b/test/parallel/test-http2-util-headers-list.js
index 0bbe1972d0..0ff6b558d9 100644
--- a/test/parallel/test-http2-util-headers-list.js
+++ b/test/parallel/test-http2-util-headers-list.js
@@ -5,6 +5,8 @@
// to pass to the internal binding layer.
const common = require('../common');
+if (!common.hasCrypto)
+ common.skip('missing crypto');
const assert = require('assert');
const { mapToHeaders } = require('internal/http2/util');