From 46fa7bf3dbeda46a419dea2061388dfb0c6a9158 Mon Sep 17 00:00:00 2001 From: Maskym Vavilov Date: Thu, 30 Jan 2025 15:18:12 +0000 Subject: [PATCH] test improvement Signed-off-by: Maskym Vavilov --- .../common/ratelimitpolicy/ratelimitpolicy_controller_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/common/ratelimitpolicy/ratelimitpolicy_controller_test.go b/tests/common/ratelimitpolicy/ratelimitpolicy_controller_test.go index 55d905470..7d61b7e72 100644 --- a/tests/common/ratelimitpolicy/ratelimitpolicy_controller_test.go +++ b/tests/common/ratelimitpolicy/ratelimitpolicy_controller_test.go @@ -672,7 +672,7 @@ var _ = Describe("RateLimitPolicy controller", func() { Expect(k8sClient.Create(ctx, gwRLP)).To(Succeed()) gwRLPKey := client.ObjectKey{Name: gwRLP.Name, Namespace: testNamespace} Eventually(assertPolicyIsAcceptedAndNotEnforced(ctx, gwRLPKey)).WithContext(ctx).Should(BeTrue()) - Expect(tests.RLPEnforcedCondition(ctx, testClient(), gwRLPKey, kuadrant.PolicyReasonUnknown, "RateLimitPolicy is not in the path to any existing routes")) + Expect(tests.RLPEnforcedCondition(ctx, testClient(), gwRLPKey, kuadrant.PolicyReasonUnknown, "RateLimitPolicy is not in the path to any existing routes")).To(BeTrue()) }, testTimeOut) }) @@ -730,6 +730,7 @@ var _ = Describe("RateLimitPolicy controller", func() { Expect(k8sClient.Create(ctx, rlp2)).To(Succeed()) Eventually(assertAcceptedConditionTrue(rlp), time.Minute, 5*time.Second).Should(BeTrue()) + Eventually(assertAcceptedConditionTrue(rlp2), time.Minute, 5*time.Second).Should(BeTrue()) }, testTimeOut) })