Skip to content

Commit

Permalink
Update scaledobject_webhook_test.go
Browse files Browse the repository at this point in the history
Signed-off-by: Shane <[email protected]>
  • Loading branch information
ctccxxd authored Dec 7, 2024
1 parent c890580 commit aed658d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apis/keda/v1alpha1/scaledobject_webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ var _ = It("should validate the so creation When the fallback are configured and
FailureThreshold: 3,
Replicas: 6,
}
for _, trigger := range so.Spec.Triggers {
trigger.MetricType = "AverageValue"
}
for i, _ := range so.Spec.Triggers {
so.Spec.Triggers[i].MetricType = "AverageValue"
}
err := k8sClient.Create(context.Background(), namespace)
Expect(err).ToNot(HaveOccurred())

Expand Down

0 comments on commit aed658d

Please sign in to comment.