From ccb8c12712ae4a3b58acbe33e6c1828157340d2b Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Sat, 15 Feb 2025 10:08:02 +0100 Subject: [PATCH] test,crypto: make tests work for BoringSSL Ref https://github.com/nodejs/node/pull/56559 PR-URL: https://github.com/nodejs/node/pull/57021 Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Richard Lau Reviewed-By: Michael Dawson --- test/parallel/test-crypto-prime.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-crypto-prime.js b/test/parallel/test-crypto-prime.js index a53ee4f3e0417a..6f43e3a0bfbf29 100644 --- a/test/parallel/test-crypto-prime.js +++ b/test/parallel/test-crypto-prime.js @@ -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 }); }