Skip to content

Commit

Permalink
make BeSpecEvent duration matcher more forgiving
Browse files Browse the repository at this point in the history
  • Loading branch information
onsi committed Aug 21, 2024
1 parent 265b1a0 commit d6f9640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/test_helpers/fake_reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func BeSpecEvent(options ...interface{}) OmegaMatcher {
matcher = HaveField("Attempt", x)
description = append(description, fmt.Sprintf("Attempt=%d", x))
case time.Duration:
matcher = HaveField("Duration", BeNumerically("~", x, time.Duration(float64(x)*0.2)))
matcher = HaveField("Duration", BeNumerically("~", x, time.Duration(float64(x)*0.5)))
description = append(description, "Duration="+x.String())
case types.NodeType:
matcher = HaveField("NodeType", x)
Expand Down

0 comments on commit d6f9640

Please sign in to comment.