Skip to content

Commit 8483de4

Browse files
tniessendanielleadams
authored andcommitted
test: only run prime test with supported OpenSSL
PR-URL: #37212 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 55fd6b6 commit 8483de4

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

test/parallel/test-crypto-prime.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,14 @@ generatePrime(
211211
code: 'ERR_OUT_OF_RANGE'
212212
});
213213

214-
// This is possible and allowed (but makes little sense).
215-
assert.strictEqual(generatePrimeSync(4, {
216-
add: 15n,
217-
rem: 13n,
218-
bigint: true
219-
}), 13n);
214+
if (process.versions.openssl >= '1.1.1f') {
215+
// This is possible and allowed (but makes little sense).
216+
assert.strictEqual(generatePrimeSync(4, {
217+
add: 15n,
218+
rem: 13n,
219+
bigint: true
220+
}), 13n);
221+
}
220222
}
221223

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

0 commit comments

Comments
 (0)