Skip to content

Commit

Permalink
Fixed channel timeout test
Browse files Browse the repository at this point in the history
  • Loading branch information
pkittenis committed Jan 11, 2017
1 parent 6622d7c commit 6425de3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_pssh_client.py
Expand Up @@ -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'])

Expand Down

0 comments on commit 6425de3

Please sign in to comment.