-
Notifications
You must be signed in to change notification settings - Fork 294
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: ensure all updates are processed in xds ir update test #1799
Conversation
Signed-off-by: David Boslee <david@goteleport.com>
fd48a41
to
9b4d125
Compare
how about using |
would be good to test this with |
Codecov Report
@@ Coverage Diff @@
## main #1799 +/- ##
==========================================
+ Coverage 65.04% 65.12% +0.08%
==========================================
Files 84 84
Lines 12230 12230
==========================================
+ Hits 7955 7965 +10
+ Misses 3764 3756 -8
+ Partials 511 509 -2 |
Signed-off-by: David Boslee <david@goteleport.com>
require.Eventually didn't exactly fit here. Checking that the number of updates is eventually equal to the desired value could work but could also give a false positive where the number of updates would have been incremented past the desired value otherwise. This updated version of the test uses the I ran |
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.
LGTM thanks !
What this PR does / why we need it:
TestXdsIRUpdates added in #1795 is flaky. This adds a sleep to reduce the chance of failing. Open to suggestions to avoid the sleep but this pattern is also used in another test here
gateway/internal/message/watchutil_test.go
Line 43 in 080674a