-
Notifications
You must be signed in to change notification settings - Fork 187
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
tests: tweak timings so we cancel during HTTP processing #696
tests: tweak timings so we cancel during HTTP processing #696
Conversation
There are 3 possibilities: * We cancel before the HTTP request (possibly even before the dial has completed) * We cancel during the delay in our slow server * We cancel after request processing Because our intervals were [0, 1s] and [0.5s, 2s] I think we previously could have hit all three cases. Likely there is a bug lurking in one of these three cases, but let's start by making the delays such that we are always in the second situation (assuming dialing localhost takes < 1s) We now delay the HTTP response by 3 seconds, and cancel after a random value in the interval [1s, 2s)
5d421a6
to
ea4e1e6
Compare
OK, a full green run. But maybe it's just luck... /retest |
/test pull-apiserver-network-proxy-test-master |
Still green, but just in case ... /test pull-apiserver-network-proxy-test-master |
/assign @cheftako |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheftako, justinsb The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Cherry-pick #696 tests: tweak timings so we cancel during HTTP processing
There are 3 possibilities:
Because our intervals were [0, 1s] and [0.5s, 2s] I think we
previously could have hit all three cases.
Likely there is a bug lurking in one of these three cases,
but let's start by making the delays such that we are
always in the second situation (assuming dialing localhost
takes < 1s)
We now delay the HTTP response by 3 seconds, and cancel
after a random value in the interval [1s, 2s)