Skip to content

Commit c38fe48

Browse files
authored
feat: update scaled controller test by remove Unknown (#7104)
Signed-off-by: Rick Brouwer <rickbrouwer@gmail.com>
1 parent 3db2e89 commit c38fe48

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎controllers/keda/scaledobject_controller_test.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ var _ = Describe("ScaledObjectController", func() {
687687
err = k8sClient.Get(context.Background(), types.NamespacedName{Name: soName, Namespace: "default"}, so)
688688
Ω(err).ToNot(HaveOccurred())
689689
return so.Status.Conditions.GetPausedCondition().Status
690-
}, 2*time.Minute).WithPolling(5 * time.Second).Should(Or(Equal(metav1.ConditionFalse), Equal(metav1.ConditionUnknown)))
690+
}, 2*time.Minute).WithPolling(5 * time.Second).Should(Equal(metav1.ConditionFalse))
691691

692692
// Set the annotation
693693
Eventually(func() error {
@@ -797,7 +797,7 @@ var _ = Describe("ScaledObjectController", func() {
797797
err = k8sClient.Get(context.Background(), types.NamespacedName{Name: soName, Namespace: "default"}, so)
798798
Ω(err).ToNot(HaveOccurred())
799799
return so.Status.Conditions.GetPausedCondition().Status
800-
}, 2*time.Minute).WithPolling(5 * time.Second).Should(Or(Equal(metav1.ConditionFalse), Equal(metav1.ConditionUnknown)))
800+
}, 2*time.Minute).WithPolling(5 * time.Second).Should(Equal(metav1.ConditionFalse))
801801

802802
Eventually(func() autoscalingv2.ScalingPolicySelect {
803803
err := k8sClient.Get(context.Background(), types.NamespacedName{Name: "keda-hpa-" + soName, Namespace: "default"}, hpa)

0 commit comments

Comments
 (0)