Skip to content

Commit

Permalink
Fix flaky test by setting longer connect timeout
Browse files Browse the repository at this point in the history
This test is not setting a connection timeout, so the connect timeout
should be long, not short.
  • Loading branch information
pquentin authored and sethmlarson committed Apr 11, 2020
1 parent 262ac6b commit 2ec3438
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion test/test_proxymanager.py
Expand Up @@ -2,7 +2,6 @@

from .port_helpers import find_unused_port
from urllib3.poolmanager import ProxyManager
from urllib3.util.url import parse_url
from urllib3.util.retry import Retry
from urllib3.exceptions import (
MaxRetryError,
Expand Down
2 changes: 1 addition & 1 deletion test/with_dummyserver/test_socketlevel.py
Expand Up @@ -496,7 +496,7 @@ def socket_handler(listener):

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
Expand Down

0 comments on commit 2ec3438

Please sign in to comment.