Skip to content

Commit d35d516

Browse files
committed
test: only run prime test with supported OpenSSL
1 parent cd94327 commit d35d516

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

test/parallel/test-crypto-prime.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,14 @@ generatePrime(
189189
code: 'ERR_OUT_OF_RANGE'
190190
});
191191

192-
// This is possible and allowed (but makes little sense).
193-
assert.strictEqual(generatePrimeSync(4, {
194-
add: 15n,
195-
rem: 13n,
196-
bigint: true
197-
}), 13n);
192+
if (process.versions.openssl >= '1.1.1f') {
193+
// This is possible and allowed (but makes little sense).
194+
assert.strictEqual(generatePrimeSync(4, {
195+
add: 15n,
196+
rem: 13n,
197+
bigint: true
198+
}), 13n);
199+
}
198200
}
199201

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

0 commit comments

Comments
 (0)