From e28bfc0d1cd6ace84200b619879ad1cb4dedd4cc Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Thu, 10 Mar 2022 13:33:35 +0000 Subject: [PATCH] Fix cli test --- test/cli.test.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);