diff --git a/tests/test_pssh_client.py b/tests/test_pssh_client.py index 2bb5109f..9e251698 100644 --- a/tests/test_pssh_client.py +++ b/tests/test_pssh_client.py @@ -942,9 +942,9 @@ def test_pty(self): self.assertTrue(exit_code == 0) def test_channel_timeout(self): - del self.client cmd = "sleep 2; echo me" - self.client = ParallelSSHClient([self.host], channel_timeout=1) + self.client = ParallelSSHClient([self.host], port=self.listen_port, + pkey=self.user_key, channel_timeout=.1) output = self.client.run_command(cmd) self.assertRaises(socket_timeout, list, output[self.host]['stdout'])