Skip to content

Commit

Permalink
fix flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
phm07 committed Sep 30, 2024
1 parent 40f03d5 commit 8413f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (r RegexBuilder) Age() RegexBuilder {
}

func (r RegexBuilder) HumanizeTime() RegexBuilder {
return r.Raw(`[0-9]+ (?:seconds?|minutes?|hours?|days?|months?|years?) ago`)
return r.OneOf(`now`, `[0-9]+ (?:seconds?|minutes?|hours?|days?|months?|years?) ago`)
}

func (r RegexBuilder) Whitespace() RegexBuilder {
Expand Down

0 comments on commit 8413f66

Please sign in to comment.