Skip to content

Commit ce26ba6

Browse files
authored
Merge pull request #555 from authzed/fix-flaky-testValidate
test: fix flaky TestValidate
2 parents 1a95ef4 + 51e2b33 commit ce26ba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/cmd/validate_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func TestMain(m *testing.M) {
3434
os.Exit(code)
3535
}
3636

37-
var durationRegex = regexp.MustCompile(`\([\d.]*[µmn]s\)`)
37+
var durationRegex = regexp.MustCompile(`\([\d.]*[µmn]?s\)`)
3838

3939
func stripDuration(s string) string {
4040
return durationRegex.ReplaceAllString(s, "(Xs)")

0 commit comments

Comments
 (0)