Skip to content

Commit

Permalink
test,crypto: make tests work for BoringSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Feb 12, 2025
1 parent 9ce1fff commit a49acf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-crypto-prime.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,11 @@ for (const checks of [-(2 ** 31), -1, 2 ** 31, 2 ** 32 - 1, 2 ** 32, 2 ** 50]) {
bytes[0] = 0x1;
assert.throws(() => checkPrime(bytes, common.mustNotCall()), {
code: 'ERR_OSSL_BN_BIGNUM_TOO_LONG',
message: /bignum too long/
message: /bignum[_ ]too[_ ]long/i
});
assert.throws(() => checkPrimeSync(bytes), {
code: 'ERR_OSSL_BN_BIGNUM_TOO_LONG',
message: /bignum too long/
message: /bignum[_ ]too[_ ]long/i
});
}

Expand Down

0 comments on commit a49acf9

Please sign in to comment.