diff --git a/fleetshard/pkg/central/operator/upgrade_test.go b/fleetshard/pkg/central/operator/upgrade_test.go index 639a9e0b56..51f2ca437a 100644 --- a/fleetshard/pkg/central/operator/upgrade_test.go +++ b/fleetshard/pkg/central/operator/upgrade_test.go @@ -151,8 +151,8 @@ func TestOperatorUpgradeFreshInstall(t *testing.T) { err = fakeClient.Get(context.Background(), client.ObjectKey{Namespace: ACSOperatorNamespace, Name: operatorDeployment1.Name}, operatorDeployment1) require.NoError(t, err) containers := operatorDeployment1.Spec.Template.Spec.Containers - assert.Len(t, containers, 2) - managerContainer := containers[1] + assert.Len(t, containers, 1) + managerContainer := containers[0] assert.Equal(t, managerContainer.Image, operatorImage1) }