Commit 3460903e authored by Denis Bilenko's avatar Denis Bilenko

increase test's timeout to make it pass on windows/vbox

parent 8fa11729
...@@ -142,6 +142,8 @@ def get_port(): ...@@ -142,6 +142,8 @@ def get_port():
class TestCreateConnection(greentest.TestCase): class TestCreateConnection(greentest.TestCase):
__timeout__ = 5
def test(self): def test(self):
try: try:
socket.create_connection(('localhost', get_port()), timeout=30, source_address=('', get_port())) socket.create_connection(('localhost', get_port()), timeout=30, source_address=('', get_port()))
......
...@@ -31,6 +31,8 @@ except ImportError: ...@@ -31,6 +31,8 @@ except ImportError:
class TestSocketErrors(greentest.TestCase): class TestSocketErrors(greentest.TestCase):
__timeout__ = 5
def test_connection_refused(self): def test_connection_refused(self):
s = socket() s = socket()
try: try:
......
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