Skip to content

Commit ccb8c12

Browse files
codebyteretargos
authored andcommitted
test,crypto: make tests work for BoringSSL
Ref #56559 PR-URL: #57021 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
1 parent b369ad6 commit ccb8c12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-crypto-prime.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,11 @@ for (const checks of [-(2 ** 31), -1, 2 ** 31, 2 ** 32 - 1, 2 ** 32, 2 ** 50]) {
258258
bytes[0] = 0x1;
259259
assert.throws(() => checkPrime(bytes, common.mustNotCall()), {
260260
code: 'ERR_OSSL_BN_BIGNUM_TOO_LONG',
261-
message: /bignum too long/
261+
message: /bignum[_ ]too[_ ]long/i
262262
});
263263
assert.throws(() => checkPrimeSync(bytes), {
264264
code: 'ERR_OSSL_BN_BIGNUM_TOO_LONG',
265-
message: /bignum too long/
265+
message: /bignum[_ ]too[_ ]long/i
266266
});
267267
}
268268

0 commit comments

Comments
 (0)