diff options
author | Tobias Nießen <tniessen@tnie.de> | 2021-02-05 19:26:09 +0300 |
---|---|---|
committer | Danielle Adams <adamzdanielle@gmail.com> | 2021-02-16 17:12:53 +0300 |
commit | 8483de4da8ba68d5bebb031c94a90c10dc44ccd1 (patch) | |
tree | 91905798804bdaa13ae7eaf39869825914c2df20 /test | |
parent | 55fd6b6611604ba2d667a68c3c96e6618ecf6452 (diff) |
test: only run prime test with supported OpenSSL
PR-URL: https://github.com/nodejs/node/pull/37212
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-crypto-prime.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/test/parallel/test-crypto-prime.js b/test/parallel/test-crypto-prime.js index 7afb34651f5..749221b4514 100644 --- a/test/parallel/test-crypto-prime.js +++ b/test/parallel/test-crypto-prime.js @@ -211,12 +211,14 @@ generatePrime( code: 'ERR_OUT_OF_RANGE' }); - // This is possible and allowed (but makes little sense). - assert.strictEqual(generatePrimeSync(4, { - add: 15n, - rem: 13n, - bigint: true - }), 13n); + if (process.versions.openssl >= '1.1.1f') { + // This is possible and allowed (but makes little sense). + assert.strictEqual(generatePrimeSync(4, { + add: 15n, + rem: 13n, + bigint: true + }), 13n); + } } [1, 'hello', {}, []].forEach((i) => { |