mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
testConnectTimeout(): set the timeout to a smaller value; 0.02
sometimes wasn't short enough.
This commit is contained in:
parent
83a072d953
commit
6e813188db
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ class TimeoutTestCase(unittest.TestCase):
|
|||
|
||||
def testConnectTimeout(self):
|
||||
# Test connect() timeout
|
||||
_timeout = 0.02
|
||||
_timeout = 0.001
|
||||
self.sock.settimeout(_timeout)
|
||||
|
||||
_t1 = time.time()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue