From d6f96403bfb442abd624e26e92af2285dfaddd85 Mon Sep 17 00:00:00 2001 From: Onsi Fakhouri Date: Wed, 21 Aug 2024 12:30:42 -0600 Subject: [PATCH] make BeSpecEvent duration matcher more forgiving --- internal/test_helpers/fake_reporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/test_helpers/fake_reporter.go b/internal/test_helpers/fake_reporter.go index 59a3145e6..52f3c30f0 100644 --- a/internal/test_helpers/fake_reporter.go +++ b/internal/test_helpers/fake_reporter.go @@ -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)