mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-38614: Use test.support.LOOPBACK_TIMEOUT constant (GH-17554)
Replace hardcoded timeout constants in tests with LOOPBACK_TIMEOUT of test.support, so it's easier to ajdust this timeout for all tests at once.
This commit is contained in:
parent
680068c288
commit
07871b256c
10 changed files with 71 additions and 42 deletions
|
@ -139,7 +139,7 @@ class SilentWSGIRequestHandler(WSGIRequestHandler):
|
|||
|
||||
class SilentWSGIServer(WSGIServer):
|
||||
|
||||
request_timeout = 2
|
||||
request_timeout = support.LOOPBACK_TIMEOUT
|
||||
|
||||
def get_request(self):
|
||||
request, client_addr = super().get_request()
|
||||
|
@ -220,7 +220,7 @@ if hasattr(socket, 'AF_UNIX'):
|
|||
|
||||
class UnixWSGIServer(UnixHTTPServer, WSGIServer):
|
||||
|
||||
request_timeout = 2
|
||||
request_timeout = support.LOOPBACK_TIMEOUT
|
||||
|
||||
def server_bind(self):
|
||||
UnixHTTPServer.server_bind(self)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue