Skip to content

Commit

Permalink
Merge pull request #833 from abays/fix_osv_func_test
Browse files Browse the repository at this point in the history
Fix race condition in OpenStackVersion func test
  • Loading branch information
openshift-merge-bot[bot] authored Jun 7, 2024
2 parents 3b8e72b + 49ea221 commit 2c395ab
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/functional/base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,13 @@ func OpenStackVersionConditionGetter(name types.NamespacedName) condition.Condit
return instance.Status.Conditions
}

func OpenStackVersionRemoveFinalizer(ctx context.Context, name types.NamespacedName) error {
instance := GetOpenStackVersion(name)
instance.SetFinalizers([]string{})
return th.K8sClient.Update(ctx, instance)
func OpenStackVersionRemoveFinalizer(ctx context.Context, name types.NamespacedName) {
Eventually(func(g Gomega) {
instance := GetOpenStackVersion(name)
instance.SetFinalizers([]string{})
g.Expect(th.K8sClient.Update(ctx, instance)).Should(Succeed())

}, timeout, interval).Should(Succeed())
}

func CreateOpenStackControlPlane(name types.NamespacedName, spec map[string]interface{}) client.Object {
Expand Down

0 comments on commit 2c395ab

Please sign in to comment.