Skip to content

Commit

Permalink
test: add crypto check to test-benchmark-tls
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
danbev committed Feb 13, 2018
1 parent bd4773a commit 5473a5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/sequential/test-benchmark-tls.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

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

if (!common.hasCrypto)
common.skip('missing crypto');

if (!common.enoughTestMem)
common.skip('Insufficient memory for TLS benchmark test');

Expand Down

0 comments on commit 5473a5c

Please sign in to comment.