Skip to content

Commit

Permalink
Switch to long timeout in test_ssl_read_timeout
Browse files Browse the repository at this point in the history
A part of the test is not supposed to time out, so a short timeout does
not make sense here.
  • Loading branch information
pquentin committed Oct 29, 2019
1 parent 3f4694f commit 8a17b4a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/with_dummyserver/test_socketlevel.py
Expand Up @@ -1179,9 +1179,8 @@ def socket_handler(listener):

self._start_server(socket_handler)
with HTTPSConnectionPool(self.host, self.port, ca_certs=DEFAULT_CA) as pool:
timeout = Timeout(connect=LONG_TIMEOUT, read=SHORT_TIMEOUT)
response = pool.urlopen(
"GET", "/", retries=0, preload_content=False, timeout=timeout
"GET", "/", retries=0, preload_content=False, timeout=LONG_TIMEOUT
)
try:
with pytest.raises(ReadTimeoutError):
Expand Down

0 comments on commit 8a17b4a

Please sign in to comment.