summaryrefslogtreecommitdiff
path: root/test/parallel/test-crypto-hash-stream-pipe.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-crypto-hash-stream-pipe.js')
-rw-r--r--test/parallel/test-crypto-hash-stream-pipe.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/parallel/test-crypto-hash-stream-pipe.js b/test/parallel/test-crypto-hash-stream-pipe.js
index c3f14245ee..795abd49a0 100644
--- a/test/parallel/test-crypto-hash-stream-pipe.js
+++ b/test/parallel/test-crypto-hash-stream-pipe.js
@@ -1,7 +1,12 @@
var common = require('../common');
var assert = require('assert');
+if (!common.hasCrypto) {
+ console.log('1..0 # Skipped: missing crypto');
+ process.exit();
+}
var crypto = require('crypto');
+
var stream = require('stream')
var s = new stream.PassThrough();
var h = crypto.createHash('sha1');