testConnectTimeout(): set the timeout to a smaller value; 0.02

sometimes wasn't short enough.
This commit is contained in:
Guido van Rossum 2002-09-03 19:17:47 +00:00
parent 83a072d953
commit 6e813188db
1 changed files with 1 additions and 1 deletions

View File

@ -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()