Skip to content

Commit d6f9640

Browse files
committedAug 21, 2024·
make BeSpecEvent duration matcher more forgiving
1 parent 265b1a0 commit d6f9640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎internal/test_helpers/fake_reporter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ func BeSpecEvent(options ...interface{}) OmegaMatcher {
372372
matcher = HaveField("Attempt", x)
373373
description = append(description, fmt.Sprintf("Attempt=%d", x))
374374
case time.Duration:
375-
matcher = HaveField("Duration", BeNumerically("~", x, time.Duration(float64(x)*0.2)))
375+
matcher = HaveField("Duration", BeNumerically("~", x, time.Duration(float64(x)*0.5)))
376376
description = append(description, "Duration="+x.String())
377377
case types.NodeType:
378378
matcher = HaveField("NodeType", x)

0 commit comments

Comments
 (0)
Please sign in to comment.