Skip to content

Commit

Permalink
tests: fixed integration test for policyaffected condition inherited …
Browse files Browse the repository at this point in the history
…by the routes
  • Loading branch information
guicassolato committed Apr 23, 2024
1 parent e7e8b38 commit 30cd6be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/target_status_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ var _ = Describe("Target status reconciler", func() {
}
})
Expect(k8sClient.Create(context.Background(), policy)).To(Succeed())
Eventually(policyAcceptedAndTargetsAffected(policy), 30*time.Second, 5*time.Second).Should(BeTrue())
Eventually(policyAcceptedAndTargetsAffected(policy, testHTTPRouteName), 30*time.Second, 5*time.Second).Should(BeTrue())
})

It("removes PolicyAffected status condition from the targeted gateway and routes when the policy is deleted", func() {
Expand Down Expand Up @@ -347,7 +347,7 @@ var _ = Describe("Target status reconciler", func() {
}
})
Expect(k8sClient.Create(context.Background(), policy)).To(Succeed())
Eventually(policyAcceptedAndTargetsAffected(policy), 30*time.Second, 5*time.Second).Should(BeTrue())
Eventually(policyAcceptedAndTargetsAffected(policy, testHTTPRouteName), 30*time.Second, 5*time.Second).Should(BeTrue())
})

It("removes PolicyAffected status condition from the targeted gateway and routes when the policy is deleted", func() {
Expand Down

0 comments on commit 30cd6be

Please sign in to comment.