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 }); }