From df28c41d02659aa881f042ad6609fed4c7e5d3ec Mon Sep 17 00:00:00 2001 From: Gar Date: Wed, 24 Jul 2024 08:02:52 -0700 Subject: [PATCH] chore: allow for longer timer values Sometimes computers are slow --- test/lib/utils/timers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/utils/timers.js b/test/lib/utils/timers.js index f13b5ac2ba75d..891c6d3ac631e 100644 --- a/test/lib/utils/timers.js +++ b/test/lib/utils/timers.js @@ -30,7 +30,7 @@ t.test('logs timing events', async (t) => { timers.off() time.end('foo') t.equal(logs.timing.length, 1) - t.match(logs.timing[0], /^bar Completed in [0-9]ms/) + t.match(logs.timing[0], /^bar Completed in [0-9]+m?s/) }) t.test('finish unstarted timer', async (t) => {