Fix cli test
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded

This commit is contained in:
Jonatan Nilsson 2022-03-10 13:33:35 +00:00
parent 2ce531c0e8
commit e28bfc0d1c

View file

@ -102,8 +102,8 @@ t.test('simple.log doesnotexist1.log doesnotexist2.log', async function () {
// io.js 2.2 (at least):
// ENOENT: no such file or directory, open 'doesnotexist1.log'
let matches = [
/^bunyan: ENOENT.*?, open '.+doesnotexist1.log'/m,
/^bunyan: ENOENT.*?, open '.+doesnotexist2.log'/m,
/^bunyan: ENOENT.*?, open '[^']*doesnotexist1.log'/m,
/^bunyan: ENOENT.*?, open '[^']*doesnotexist2.log'/m,
];
matches.forEach(function (match) {
assert.match(res.stderr, match);