diff options
author | Cory Benfield <lukasaoz@gmail.com> | 2014-08-14 21:35:31 +0100 |
---|---|---|
committer | Cory Benfield <lukasaoz@gmail.com> | 2014-08-14 21:35:31 +0100 |
commit | 021160d8db62b8873f7deda3f7d89750941d2704 (patch) | |
tree | a5913af8c9e938bfd489f3b43d70a8fe077b4e93 | |
parent | 3b9eaefebb1b2e55b6392d5c55ac07594cc057e3 (diff) |
Use a shorter timeout in banner timeout test.
-rw-r--r-- | tests/test_client.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_client.py b/tests/test_client.py index 1867fb78..48e2e9b0 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -260,14 +260,14 @@ class SSHClientTest (unittest.TestCase): """ verify that the SSHClient has a configurable banner timeout. """ - # Start the thread with a 5 second wait. - threading.Thread(target=self._run, args=(5,)).start() + # Start the thread with a 1 second wait. + threading.Thread(target=self._run, args=(1,)).start() host_key = paramiko.RSAKey.from_private_key_file(test_path('test_rsa.key')) public_host_key = paramiko.RSAKey(data=host_key.asbytes()) self.tc = paramiko.SSHClient() self.tc.get_host_keys().add('[%s]:%d' % (self.addr, self.port), 'ssh-rsa', public_host_key) - # Connect with a three second banner timeout. + # Connect with a half second banner timeout. self.assertRaises( paramiko.SSHException, self.tc.connect, @@ -275,5 +275,5 @@ class SSHClientTest (unittest.TestCase): self.port, username='slowdive', password='pygmalion', - banner_timeout=3 + banner_timeout=0.5 ) |