Skip to content

Commit

Permalink
bug: Fix the statefull set check (#3)
Browse files Browse the repository at this point in the history
Signed-off-by: chandankumar4 <[email protected]>
  • Loading branch information
chandankumar4 committed Oct 31, 2023
1 parent ebb98ab commit 14919c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testing/fixtures/when.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (w *When) WaitForISBSvcReady() *When {
}

isbSvclabels := fmt.Sprintf("%s=isbsvc-controller,%s=%s", dfv1.KeyManagedBy, dfv1.KeyISBSvcName, w.isbSvc.Name)
if err := w.WaitForStatefulSetReady(isbSvclabels); err != nil {
if err := WaitForStatefulSetReady(ctx, w.kubeClient, 5*time.Minute, Namespace, isbSvclabels); err != nil {
w.t.Fatal(err)
}

Expand All @@ -174,6 +174,7 @@ func (w *When) WaitForStatefulSetReady(labelSelector string) *When {
if err := WaitForStatefulSetReady(ctx, w.kubeClient, 5*time.Minute, Namespace, labelSelector); err != nil {
w.t.Fatal(err)
}

return w
}

Expand Down

0 comments on commit 14919c3

Please sign in to comment.