Add timeout to the ParallelSSHCLient parameters
@@ -22,6 +22,7 @@ import unittest2
from st2common.runners.parallel_ssh import ParallelSSHClient
from st2common.runners.paramiko_ssh import ParamikoSSHClient
from st2common.runners.paramiko_ssh import SSHCommandTimeoutError
+
import st2tests.config as tests_config
tests_config.parse_args()
@@ -43,7 +44,8 @@ class ParallelSSHTests(unittest2.TestCase):
client = ParallelSSHClient(hosts=hosts,
user='ubuntu',
password='ubuntu',
- connect=False)
+ connect=False,
+ timeout=30)
client.connect()
expected_conn = {
'allow_agent': False,
@@ -65,7 +67,8 @@ class ParallelSSHTests(unittest2.TestCase):
client = ParallelSSHClient(hosts=hosts,
user='ubuntu',
password='ubuntu',
- connect=False)
+ connect=False,
+ timeout=30)
client.connect()
expected_conn = {
'allow_agent': False,
