summaryrefslogtreecommitdiff
path: root/test/parallel/test-async-wrap-uncaughtexception.js
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2017-05-11 08:56:33 +0200
committerDaniel Bevenius <daniel.bevenius@gmail.com>2017-05-12 07:16:44 +0200
commit9f8e030f1b41d3625cf36c282090c6a90c7a203e (patch)
tree0c065c4279dc38327c79edeecf84c4b7edfac356 /test/parallel/test-async-wrap-uncaughtexception.js
parentd7d16f7b8b4f0203f8e3128c37a1329061456c5d (diff)
downloadandroid-node-v8-9f8e030f1b41d3625cf36c282090c6a90c7a203e.tar.gz
android-node-v8-9f8e030f1b41d3625cf36c282090c6a90c7a203e.tar.bz2
android-node-v8-9f8e030f1b41d3625cf36c282090c6a90c7a203e.zip
src: add/move hasCrypto checks for async tests
Currently when configured --without-ssl these test will fail. In test-crypto-pbkdf2.js and test-crypto-randomBytes.js the check exists but just need to be moved before the require of crypto. There was no check in test-async-wrap-uncaughtexception.js so one was added. PR-URL: https://github.com/nodejs/node/pull/12968 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Luca Maraschi <luca.maraschi@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-async-wrap-uncaughtexception.js')
-rw-r--r--test/parallel/test-async-wrap-uncaughtexception.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/parallel/test-async-wrap-uncaughtexception.js b/test/parallel/test-async-wrap-uncaughtexception.js
index 099bdb70dd..c6ff06397e 100644
--- a/test/parallel/test-async-wrap-uncaughtexception.js
+++ b/test/parallel/test-async-wrap-uncaughtexception.js
@@ -1,6 +1,10 @@
'use strict';
const common = require('../common');
+if (!common.hasCrypto) {
+ common.skip('missing crypto');
+ return;
+}
const assert = require('assert');
const async_hooks = require('async_hooks');
const call_log = [0, 0, 0, 0]; // [before, callback, exception, after];