Skip to content

Commit 5473a5c

Browse files
committed
test: add crypto check to test-benchmark-tls
Currently when building --without-ssl a 'ERR_NO_CRYPTO' error is reported. This is not currently being picked up by the crypto-check lint rule as it does not actually require any crypto modules directly, but instead this is done by common/benchmark. I'll take a closer look at the check and see what can be done but I don't have time straight away, so creating this commit to avoid breakage in the short term.
1 parent bd4773a commit 5473a5c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/sequential/test-benchmark-tls.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
const common = require('../common');
44

5+
if (!common.hasCrypto)
6+
common.skip('missing crypto');
7+
58
if (!common.enoughTestMem)
69
common.skip('Insufficient memory for TLS benchmark test');
710

0 commit comments

Comments
 (0)