diff --git a/pkg/endpoints/handlers/fieldmanager/internal/atmostevery_test.go b/pkg/endpoints/handlers/fieldmanager/internal/atmostevery_test.go index 46fe4f7e8..51df7b8cd 100644 --- a/pkg/endpoints/handlers/fieldmanager/internal/atmostevery_test.go +++ b/pkg/endpoints/handlers/fieldmanager/internal/atmostevery_test.go @@ -45,7 +45,7 @@ func TestAtMostEvery(t *testing.T) { } } - if expected := int(duration/delay) + 1; count != expected { - t.Fatalf("Function called %d times, should have been called exactly %d times", count, expected) + if expected := int(duration/delay) + 1; count > expected { + t.Fatalf("Function called %d times, should have been called less than or equal to %d times", count, expected) } }