-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Try to avoid flakiness on http helper timeout tests #11345
Conversation
Block the response only during a time or till the conext is done. Close body if a request object is returned.
Not sure if the issue is addressed because I cannot reproduce it locally, I will run CI some times to see if it is fixed. |
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { | ||
<-c | ||
select { | ||
case <-time.After(5 * time.Nanosecond): |
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.
5 nanoseconds?
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.
Timeout is set to 1 nanosecond, this is just a higher time.
jenkins, test this again |
2 similar comments
jenkins, test this again |
jenkins, test this again |
jenkins, test this a fifth time please |
It went green for five runs in Jenkins and Travis, merging this. |
Block the response only during a time or till the conext is done. Close body if a request object is returned.
Block the response only during a time or till the context is done.
Close body if a request object is returned.
Fix #11336