Skip to content

Commit

Permalink
tests: match longer duration in log line replace to make unit tests m…
Browse files Browse the repository at this point in the history
…o… (#6413)
  • Loading branch information
jdolle authored Jan 24, 2025
1 parent 00097a9 commit 9d8dd0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/libraries/core/tests/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function getLogLines(calls: Array<Array<unknown>>) {
if (typeof log[1] === 'string') {
msg = log[1]
// Replace milliseconds with static value
.replace(/\(\d{1,3}ms\)/, '(666ms)')
.replace(/\(\d{1,4}ms\)/, '(666ms)')
// Replace stack trace line numbers with static value
.replace(/\(node:net:\d+:\d+\)/, '(node:net:666:666)')
.replace(/\(node:dns:\d+:\d+\)/, '(node:dns:666:666)');
Expand Down

0 comments on commit 9d8dd0c

Please sign in to comment.