Update test assertion
What does this MR do?
Update test assertion
Why was this MR needed?
We are putting a timeout of 1 millisecond, and the timeout happens it can be on different part of the http stack, for example reading headers, reading body which can return two different kind of errors:
net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
and net/http: request canceled (Client.Timeout)
, we just want to make sure it timed out and not on
what it timed out.
This test causes some flakiness in CI:
- https://gitlab.com/gitlab-org/gitlab-runner/pipelines/73498489
- https://gitlab.com/gitlab-org/gitlab-runner/pipelines/73729522
Does this MR meet the acceptance criteria?
-
Documentation created/updated -
Added tests for this feature/bug -
In case of conflicts with master
- branch was rebased