Skip to content

Commit

Permalink
wait for ready (#1915)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
bathina2 and mergify[bot] committed Feb 18, 2023
1 parent 363a31a commit 941c2af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/controller/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,15 @@ func (s *ControllerSuite) SetUpSuite(c *C) {
ss, err = s.cli.AppsV1().StatefulSets(s.namespace).Create(ctx, ss, metav1.CreateOptions{})
c.Assert(err, IsNil)
s.ss = ss
err = kube.WaitOnStatefulSetReady(ctx, s.cli, s.namespace, s.ss.Name)
c.Assert(err, IsNil)

d := testutil.NewTestDeployment(1)
d, err = s.cli.AppsV1().Deployments(s.namespace).Create(ctx, d, metav1.CreateOptions{})
c.Assert(err, IsNil)
s.deployment = d
err = kube.WaitOnDeploymentReady(ctx, s.cli, s.namespace, s.deployment.Name)
c.Assert(err, IsNil)

cm := testutil.NewTestConfigMap()
cm, err = s.cli.CoreV1().ConfigMaps(s.namespace).Create(ctx, cm, metav1.CreateOptions{})
Expand Down

0 comments on commit 941c2af

Please sign in to comment.