Skip to content

Commit

Permalink
[fixup] only run test if OpenSSL supports it
Browse files Browse the repository at this point in the history
  • Loading branch information
tniessen committed Jan 31, 2021
1 parent 38eb549 commit 6b6cdcf
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions test/parallel/test-crypto-prime.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,16 @@ generatePrime(
assert.strictEqual(prime % 5n, 1n);
}));

generatePrime(128, {
bigint: true,
safe: true,
add: 5n
}, common.mustSucceed((prime) => {
assert(checkPrimeSync(prime));
assert.strictEqual(prime % 5n, 3n);
}));
if (process.versions.openssl >= '1.1.1f') {
generatePrime(128, {
bigint: true,
safe: true,
add: 5n
}, common.mustSucceed((prime) => {
assert(checkPrimeSync(prime));
assert.strictEqual(prime % 5n, 3n);
}));
}
}

[1, 'hello', {}, []].forEach((i) => {
Expand Down

0 comments on commit 6b6cdcf

Please sign in to comment.