diff --git a/test/cli.test.mjs b/test/cli.test.mjs index 7a60970..caad021 100644 --- a/test/cli.test.mjs +++ b/test/cli.test.mjs @@ -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);