From 8413f662d90a8d38f5081930fc31893acf587679 Mon Sep 17 00:00:00 2001 From: phm07 <22707808+phm07@users.noreply.github.com> Date: Mon, 30 Sep 2024 13:44:22 +0200 Subject: [PATCH] fix flaky tests --- test/e2e/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/util.go b/test/e2e/util.go index b686f547..4e4cb99a 100644 --- a/test/e2e/util.go +++ b/test/e2e/util.go @@ -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 {