-
Notifications
You must be signed in to change notification settings - Fork 106
Fix socket timeout test #144
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
Fix socket timeout test #144
Conversation
hmmm test still fails for me...it might just be my environment is scuffed.
|
I did a fresh checkout of the repository and I see the same error as above. Can you run
|
These are mine:
|
Seems like you have |
What version of Python do you use? |
Virtualenv System |
|
I wonder if it's a change in Python 3.11. I'm going to try that way. |
I ran:
And the test is passing for |
How strange. I tried with Python 3.11 and have the same failure as before. It doesn't raise a
|
Right now we're catching all HTTP errors in a weird way that causes the ReadTimeoutError to not be wrapped in a RequestError. Rather than muck around with the internals of our retry behavior and maybe break something, I'm just updating the test to reflect the way the connector actually functions. The goal of this test is just to ensure that when we set _socket_timeout that the connections are in-fact timed out. It's less important what the exception class is. Signed-off-by: Jesse Whitehouse <[email protected]>
a9d40f6
to
c2f23e6
Compare
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.
I rewrote this so it passes on my machine.
Signed-off-by: Jesse Whitehouse <[email protected]>
synced with |
I confirmed with @mattdeekay that this passes on their machine too. |
Signed-off-by: Jesse Whitehouse <[email protected]> Co-authored-by: Jesse Whitehouse <[email protected]>
test_socket_timeout_user_defined
e2e test worked for the previous version of the driver before we introduced the urllib3.connectionpool to reuse http connection. The error that is thrown is nowurllib3.connnectionpool.ReadTimeoutError