test: fix errorMessages regular expressions from crypto-random
test/parallel/test-catpto-random.js
contains an object called
errorMesssage that contains regular expressions.They are only partially
matching regular expressions. Make them match the entire error message.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included
Affected core subsystem(s)
crypto