Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TalShorSap committed Aug 16, 2023
1 parent ea55fdb commit 267e84f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions controllers/serviceinstance_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -961,10 +961,7 @@ var _ = Describe("ServiceInstance controller", func() {
err := k8sClient.Get(ctx, defaultLookupKey, serviceInstance)
if err == nil {
cond := meta.FindStatusCondition(serviceInstance.GetConditions(), api.ConditionSucceeded)
if cond == nil {
return false
}
return cond.Status == metav1.ConditionTrue && cond.Reason == Deleted
return cond != nil && cond.Status == metav1.ConditionTrue && cond.Reason == Deleted
}
return false
}, timeout, interval).Should(BeTrue())
Expand Down

0 comments on commit 267e84f

Please sign in to comment.