Skip to content

Commit

Permalink
Merge pull request #1146 from Kuadrant/rlp-test-fix
Browse files Browse the repository at this point in the history
test improvement
  • Loading branch information
eguzki authored Feb 10, 2025
2 parents 4030da6 + c96399a commit 269d58a
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 269d58a

Please sign in to comment.