diff --git a/test/parallel/test-crypto-random.js b/test/parallel/test-crypto-random.js index 7fa5c71c3ce05d..a664023e81c06b 100644 --- a/test/parallel/test-crypto-random.js +++ b/test/parallel/test-crypto-random.js @@ -32,4 +32,4 @@ const expectedErrorRegexp = /^TypeError: size must be a number >= 0$/; // length exceeds max acceptable value" assert.throws(function() { crypto.randomBytes((-1 >>> 0) + 1); -}, TypeError); +}, /^TypeError: size must be a number >= 0$/);