Commit 6a6aa33d authored by Denis Bilenko's avatar Denis Bilenko

test__socket.py: minor fix to avoid false failures

parent e20a02ac
......@@ -50,7 +50,7 @@ class TestTCP(greentest.TestCase):
try:
data = client.recv(1024)
except socket.timeout:
assert time.time() - start >= 0.1, (time.time() - start)
assert time.time() - start >= 0.1 - 0.001, (time.time() - start)
else:
raise AssertionError('socket.timeout should have been raised, instead recv returned %r' % (data, ))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment