Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymongib committed Nov 2, 2020
1 parent e1ee75f commit 88f20d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions controllers/mattermost/clusterinstallation/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ func TestReconcile(t *testing.T) {

t.Run("replica set does not exist", func(t *testing.T) {
res, err = r.Reconcile(req)
require.Error(t, err)
assert.Contains(t, err.Error(), "replicaSet did not start rolling pods")
require.NoError(t, err)
require.Equal(t, res, reconcile.Result{RequeueAfter: 6 * time.Second})
})

replicaSet := &appsv1.ReplicaSet{
Expand All @@ -149,8 +149,8 @@ func TestReconcile(t *testing.T) {

t.Run("replica set not observed", func(t *testing.T) {
res, err = r.Reconcile(req)
require.Error(t, err)
assert.Contains(t, err.Error(), "replicaSet did not start rolling pods")
require.NoError(t, err)
require.Equal(t, res, reconcile.Result{RequeueAfter: 6 * time.Second})
})
replicaSet.Status.ObservedGeneration = 1
err = c.Update(context.TODO(), replicaSet)
Expand Down

0 comments on commit 88f20d0

Please sign in to comment.