Repository navigation
tests: remove timeout from update() - #881
TomasTomecek wants to merge 2 commits into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: TomasTomecek The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
ba01df7 to
46e7cd6
Compare
46e7cd6 to
558d839
Compare
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
558d839 to
bf565d3
Compare
|
/cc |
| commands = | ||
| python -V | ||
| py.test -vvv -s --ignore=kubernetes/e2e_test | ||
| py.test -vvv -s --showlocals --ignore=kubernetes/e2e_test |
There was a problem hiding this comment.
Does this allow us to see the variable values (e.g. the timeout) in the test (when the test fails)? I like this
There was a problem hiding this comment.
yup, that's exactly why I did this change
There was a problem hiding this comment.
but while looking at the logs in CI, it doesn't show them; that's odd
| self.assertEqual(status['status'], 'Success') | ||
| resp.update(timeout=5) | ||
| select.select([resp.sock.sock], [], [], timeout=5) | ||
| resp.update() |
There was a problem hiding this comment.
I'm not sure if we want to ask existing users to do this. On the plus side this would be a hard break (unknown parameter) instead of some undefined behavior :(
cc @yliaog
There was a problem hiding this comment.
yes, that's a very good point: I was really just trying to remove the select call from the update method for sake of #602 and kubernetes-client/python-base#106
okay, let me close this one and try the solution you proposed in the base PR
needed in kubernetes-client/python-base#143