@@ -119,7 +119,7 @@ var _ = Describe("VIM based VSphere ClusterReconciler", func() {
119119 // Make sure the VSphereCluster exists.
120120 Eventually (func () error {
121121 return testEnv .Get (ctx , key , instance )
122- }, timeout ).Should (BeNil ())
122+ }, timeout ).Should (Succeed ())
123123
124124 By ("setting the OwnerRef on the VSphereCluster" )
125125 Eventually (func () error {
@@ -132,7 +132,7 @@ var _ = Describe("VIM based VSphere ClusterReconciler", func() {
132132 UID : "blah" ,
133133 })
134134 return ph .Patch (ctx , instance , patch.WithStatusObservedGeneration {})
135- }, timeout ).Should (BeNil ())
135+ }, timeout ).Should (Succeed ())
136136
137137 Eventually (func () bool {
138138 if err := testEnv .Get (ctx , key , instance ); err != nil {
@@ -395,7 +395,7 @@ var _ = Describe("VIM based VSphere ClusterReconciler", func() {
395395 Expect (err ).ShouldNot (HaveOccurred ())
396396 zoneOne .Status .Ready = ptr .To (true )
397397 return ph .Patch (ctx , zoneOne , patch.WithStatusObservedGeneration {})
398- }, timeout ).Should (BeNil ())
398+ }, timeout ).Should (Succeed ())
399399
400400 Eventually (func () bool {
401401 if err := testEnv .Get (ctx , key , instance ); err != nil {
@@ -414,7 +414,7 @@ var _ = Describe("VIM based VSphere ClusterReconciler", func() {
414414 Expect (err ).ShouldNot (HaveOccurred ())
415415 zoneOne .Status .Ready = ptr .To (true )
416416 return ph .Patch (ctx , zoneOne , patch.WithStatusObservedGeneration {})
417- }, timeout ).Should (BeNil ())
417+ }, timeout ).Should (Succeed ())
418418 })
419419
420420 It ("should remove the FailureDomainsAvailable condition from the cluster" , func () {
0 commit comments