node/test/benchmark/test-benchmark-crypto.js
Daniel Bevenius 2ff93c8975
test: skip tests for openssl-3.0.0-alpha15
This commit skips some test when OpenSSL 3.0.0-alpha15 is used as there
is an issue that causes them to fail.

This is only a temp solution until there is new OpenSSL release.

Fixes: https://github.com/nodejs/node/issues/38373

PR-URL: https://github.com/nodejs/node/pull/38451
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2021-05-06 10:19:11 -04:00

18 lines
401 B
JavaScript

'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
if (common.hasFipsCrypto)
common.skip('some benchmarks are FIPS-incompatible');
if (common.hasOpenSSL3) {
common.skip('temporarily skipping for OpenSSL 3.0-alpha15');
}
const runBenchmark = require('../common/benchmark');
runBenchmark('crypto', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });