-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
xds: Fix flaky test TestUnmarshalListener_WithUpdateValidatorFunc #7675
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7675 +/- ##
==========================================
+ Coverage 81.80% 81.95% +0.15%
==========================================
Files 361 361
Lines 27821 27822 +1
==========================================
+ Hits 22758 22802 +44
+ Misses 3862 3835 -27
+ Partials 1201 1185 -16 |
02dbd20
to
9142e41
Compare
select { | ||
case <-readyLis.serverReady.Done(): | ||
case <-time.After(defaultTestTimeout): | ||
t.Fatalf("Timed out while waiting for the back end server to start") |
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.
Nit: s/back end/backend
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.
Nit: s/to start/to start serving/
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.
Updated the error message as suggested.
Fixes: #7599
This change ensures that the server has started listening for requests by wrapping the listener passed to
server.Serve()
Verified that the test no longer flakes in 100000 runs on forge.
RELEASE NOTES: N/A