diff --git a/k8sutils/statefulset_test.go b/k8sutils/statefulset_test.go index 536426727..b8cdab00c 100644 --- a/k8sutils/statefulset_test.go +++ b/k8sutils/statefulset_test.go @@ -296,7 +296,6 @@ func TestUpdateStatefulSet(t *testing.T) { updatedStsSpec appsv1.StatefulSetSpec recreateSts bool stsPresent bool - errorExpected bool }{ { name: "Update StatefulSet without recreate in existing Statefulset", @@ -306,9 +305,8 @@ func TestUpdateStatefulSet(t *testing.T) { updatedStsSpec: appsv1.StatefulSetSpec{ Replicas: ptrInt32(5), }, - recreateSts: false, - stsPresent: true, - errorExpected: false, + recreateSts: false, + stsPresent: true, }, { name: "Update StatefulSet with recreate in existing Statefulset", @@ -318,9 +316,8 @@ func TestUpdateStatefulSet(t *testing.T) { updatedStsSpec: appsv1.StatefulSetSpec{ Replicas: ptrInt32(4), }, - recreateSts: true, - stsPresent: true, - errorExpected: false, + recreateSts: true, + stsPresent: true, }, { name: "Update StatefulSet without recreate StatefulSet is not present", @@ -330,9 +327,8 @@ func TestUpdateStatefulSet(t *testing.T) { updatedStsSpec: appsv1.StatefulSetSpec{ Replicas: ptrInt32(4), }, - recreateSts: false, - stsPresent: false, - errorExpected: false, + recreateSts: false, + stsPresent: false, }, { name: "Update StatefulSet without recreate StatefulSet", @@ -354,9 +350,8 @@ func TestUpdateStatefulSet(t *testing.T) { }, }, }, - recreateSts: false, - stsPresent: true, - errorExpected: false, + recreateSts: false, + stsPresent: true, }, }