From 37ac177746efb013769c36c856f229fb6528d3b5 Mon Sep 17 00:00:00 2001 From: Shane Date: Wed, 20 Nov 2024 23:20:06 +0800 Subject: [PATCH] revise another case Signed-off-by: Shane --- apis/keda/v1alpha1/scaledobject_webhook_test.go | 1 + 1 file changed, 1 insertion(+) 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{}, "")