Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
Signed-off-by: Maskym Vavilov <[email protected]>
  • Loading branch information
maksymvavilov committed Jan 30, 2025
1 parent abb67e5 commit 6a4578c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

Expand Down Expand Up @@ -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)
})

Expand Down

0 comments on commit 6a4578c

Please sign in to comment.