summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Pradet <quentin.pradet@gmail.com>2020-04-08 20:32:14 +0400
committerGitHub <noreply@github.com>2020-04-08 11:32:14 -0500
commit065404601431a913fce712e69c2e8b4b651d6e3a (patch)
tree3d57582b44bfa132f57b1e61c5229b50b3852b98
parent263da24d4b5c33392772e638b12d02e5b07abf9f (diff)
downloadurllib3-065404601431a913fce712e69c2e8b4b651d6e3a.tar.gz
Fix flaky test by setting longer connect timeout
This test is not setting a connection timeout, so the connect timeout should be long, not short.
-rw-r--r--test/with_dummyserver/test_socketlevel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/with_dummyserver/test_socketlevel.py b/test/with_dummyserver/test_socketlevel.py
index bfb6fb5d..2c3ba47d 100644
--- a/test/with_dummyserver/test_socketlevel.py
+++ b/test/with_dummyserver/test_socketlevel.py
@@ -496,7 +496,7 @@ class TestSocketClosing(SocketDummyServerTestCase):
try:
self._start_server(socket_handler)
- t = Timeout(connect=SHORT_TIMEOUT, read=LONG_TIMEOUT)
+ t = Timeout(connect=LONG_TIMEOUT, read=LONG_TIMEOUT)
with HTTPConnectionPool(self.host, self.port, timeout=t) as pool:
response = pool.request("GET", "/", retries=1)
assert response.status == 200