testConnectTimeout(): set the timeout to a smaller value; 0.02
sometimes wasn't short enough.
This commit is contained in:
parent
83a072d953
commit
6e813188db
|
@ -99,7 +99,7 @@ class TimeoutTestCase(unittest.TestCase):
|
||||||
|
|
||||||
def testConnectTimeout(self):
|
def testConnectTimeout(self):
|
||||||
# Test connect() timeout
|
# Test connect() timeout
|
||||||
_timeout = 0.02
|
_timeout = 0.001
|
||||||
self.sock.settimeout(_timeout)
|
self.sock.settimeout(_timeout)
|
||||||
|
|
||||||
_t1 = time.time()
|
_t1 = time.time()
|
||||||
|
|
Loading…
Reference in New Issue