diff --git a/test/parallel/test-crypto-scrypt.js b/test/parallel/test-crypto-scrypt.js index e1d0ddf10c98f4..7c7f089606b852 100644 --- a/test/parallel/test-crypto-scrypt.js +++ b/test/parallel/test-crypto-scrypt.js @@ -169,7 +169,8 @@ for (const options of bad) { for (const options of toobig) { const expected = { - message: /error:[^:]+:digital envelope routines:EVP_PBE_scrypt:memory limit exceeded/, + message: new RegExp('error:[^:]+:digital envelope routines:' + + '(?:EVP_PBE_scrypt|scrypt_alg):memory limit exceeded'), type: Error, }; common.expectsError(() => crypto.scrypt('pass', 'salt', 1, options, () => {}),