-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix integration tests: wait for route to be accepted #339
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #339 +/- ##
==========================================
+ Coverage 65.28% 65.70% +0.42%
==========================================
Files 35 35
Lines 3794 3797 +3
==========================================
+ Hits 2477 2495 +18
+ Misses 1123 1114 -9
+ Partials 194 188 -6
Flags with carried forward coverage won't be shown. Click here to find out more.
|
b8ac79d
to
eb230e8
Compare
@@ -282,6 +272,7 @@ var _ = Describe("AuthPolicy controller", func() { | |||
} | |||
err = k8sClient.Create(context.Background(), otherRoute) | |||
Expect(err).ToNot(HaveOccurred()) | |||
Eventually(testRouteIsAccepted(client.ObjectKeyFromObject(otherRoute)), time.Minute, 5*time.Second).Should(BeTrue()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me. One suggestion may be (in a diff pr) to have a set of common timeouts defined and re-used
I was thinking exactly the same. |
No description provided.