Skip to content

Commit

Permalink
Increase channel timeout in test
Browse files Browse the repository at this point in the history
  • Loading branch information
pkittenis committed Jan 11, 2017
1 parent 1f7e9b4 commit 6622d7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_pssh_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -942,8 +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], channel_timeout=1)
output = self.client.run_command(cmd)
self.assertRaises(socket_timeout, list, output[self.host]['stdout'])

Expand Down

0 comments on commit 6622d7c

Please sign in to comment.