File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 5050 client = paramiko .SSHClient ()
5151 client .load_system_host_keys ()
5252 client .set_missing_host_key_policy (paramiko .AutoAddPolicy ())
53- client .connect ('127.0.0.1' , username = os .getenv ('USER' ), sock = proxy )
53+ client .connect ('127.0.0.1' , username = os .getenv ('USER' ), sock = proxy ,
54+ timeout = 10 )
5455
5556 no_local_ssh = False
5657
@@ -659,7 +660,8 @@ def _mock_get_ssh_client(self):
659660 client = paramiko .SSHClient ()
660661 client .load_system_host_keys ()
661662 client .set_missing_host_key_policy (paramiko .AutoAddPolicy ())
662- client .connect ('127.0.0.1' , username = os .getenv ('USER' ), sock = proxy )
663+ client .connect ('127.0.0.1' , username = os .getenv ('USER' ), sock = proxy ,
664+ timeout = 10 )
663665 return client
664666 MockSSHDataGrabber = copy .copy (nio .SSHDataGrabber )
665667 MockSSHDataGrabber ._get_ssh_client = _mock_get_ssh_client
You can’t perform that action at this time.
0 commit comments