We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6622d7c commit 6425de3Copy full SHA for 6425de3
tests/test_pssh_client.py
@@ -942,9 +942,9 @@ def test_pty(self):
942
self.assertTrue(exit_code == 0)
943
944
def test_channel_timeout(self):
945
- del self.client
946
cmd = "sleep 2; echo me"
947
- self.client = ParallelSSHClient([self.host], channel_timeout=1)
+ self.client = ParallelSSHClient([self.host], port=self.listen_port,
+ pkey=self.user_key, channel_timeout=.1)
948
output = self.client.run_command(cmd)
949
self.assertRaises(socket_timeout, list, output[self.host]['stdout'])
950
0 commit comments