Skip to content

Commit 8413f66

Browse files
committed
fix flaky tests
1 parent 40f03d5 commit 8413f66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/util.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func (r RegexBuilder) Age() RegexBuilder {
9494
}
9595

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

100100
func (r RegexBuilder) Whitespace() RegexBuilder {

0 commit comments

Comments
 (0)