Skip to content

Commit 6425de3

Browse files
author
Dan
committed
Fixed channel timeout test
1 parent 6622d7c commit 6425de3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_pssh_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -942,9 +942,9 @@ def test_pty(self):
942942
self.assertTrue(exit_code == 0)
943943

944944
def test_channel_timeout(self):
945-
del self.client
946945
cmd = "sleep 2; echo me"
947-
self.client = ParallelSSHClient([self.host], channel_timeout=1)
946+
self.client = ParallelSSHClient([self.host], port=self.listen_port,
947+
pkey=self.user_key, channel_timeout=.1)
948948
output = self.client.run_command(cmd)
949949
self.assertRaises(socket_timeout, list, output[self.host]['stdout'])
950950

0 commit comments

Comments
 (0)