From b1b6c97a88f68875f5b5b3d8ad03659131a95afe Mon Sep 17 00:00:00 2001 From: Volodymyr Zotov Date: Tue, 26 Aug 2025 16:33:49 -0500 Subject: [PATCH] Remove redundant if statement --- pkg/testhelper/kube/deployment.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/testhelper/kube/deployment.go b/pkg/testhelper/kube/deployment.go index 411d785..79a4a51 100644 --- a/pkg/testhelper/kube/deployment.go +++ b/pkg/testhelper/kube/deployment.go @@ -2,7 +2,6 @@ package kube import ( "context" - "fmt" "time" //nolint:staticcheck // ST1001 @@ -110,10 +109,6 @@ func (d *Deployment) WaitDeploymentRolledOut(ctx context.Context) { Eventually(func(g Gomega) error { newDeployment := d.Get(ctx) - // Has controller observed the new spec? - if newDeployment.Status.ObservedGeneration < targetGen { - return fmt.Errorf("observedGeneration %d < desired %d", newDeployment.Status.ObservedGeneration, targetGen) - } g.Expect(newDeployment.Status.ObservedGeneration).To(BeNumerically(">=", targetGen)) desired := int32(1)