diff --git a/apis/keda/v1alpha1/scaledobject_webhook_test.go b/apis/keda/v1alpha1/scaledobject_webhook_test.go index 045029d5011..8b549dcd8a9 100644 --- a/apis/keda/v1alpha1/scaledobject_webhook_test.go +++ b/apis/keda/v1alpha1/scaledobject_webhook_test.go @@ -59,6 +59,7 @@ var _ = It("should validate the so creation when there are other SO for other wo workload := createDeployment(namespaceName, false, false) otherWorkload := createDeployment(namespaceName, false, false) + otherWorkload.Name = "other-deployment-name" otherWorkload.Spec.Template.Name = "other-workload" so1 := createScaledObject(soName, namespaceName, workloadName, "apps/v1", "Deployment", false, map[string]string{}, "")