From 51e2b33ae9af708efbad47c385cb2b693ba276ca Mon Sep 17 00:00:00 2001 From: Maria Ines Parnisari Date: Fri, 3 Oct 2025 11:42:28 -0700 Subject: [PATCH] test: fix flaky TestValidate --- internal/cmd/validate_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cmd/validate_test.go b/internal/cmd/validate_test.go index 20c1e5c6..36230e68 100644 --- a/internal/cmd/validate_test.go +++ b/internal/cmd/validate_test.go @@ -34,7 +34,7 @@ func TestMain(m *testing.M) { os.Exit(code) } -var durationRegex = regexp.MustCompile(`\([\d.]*[µmn]s\)`) +var durationRegex = regexp.MustCompile(`\([\d.]*[µmn]?s\)`) func stripDuration(s string) string { return durationRegex.ReplaceAllString(s, "(Xs)")