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 50
50
client = paramiko .SSHClient ()
51
51
client .load_system_host_keys ()
52
52
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 )
54
55
55
56
no_local_ssh = False
56
57
@@ -659,7 +660,8 @@ def _mock_get_ssh_client(self):
659
660
client = paramiko .SSHClient ()
660
661
client .load_system_host_keys ()
661
662
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 )
663
665
return client
664
666
MockSSHDataGrabber = copy .copy (nio .SSHDataGrabber )
665
667
MockSSHDataGrabber ._get_ssh_client = _mock_get_ssh_client
You can’t perform that action at this time.
0 commit comments