Skip to content

Commit

Permalink
Updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
pkittenis committed Mar 20, 2022
1 parent b5da074 commit 1479dd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/native/test_single_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,10 @@ def test_auth_retry_failure(self):

def test_connection_timeout(self):
cmd = spawn(SSHClient, 'fakehost.com', port=12345,
num_retries=1, timeout=1, _auth_thread_pool=False)
num_retries=1, timeout=.1, _auth_thread_pool=False)
# Should fail within greenlet timeout, otherwise greenlet will
# raise timeout which will fail the test
self.assertRaises(ConnectionErrorException, cmd.get, timeout=2)
self.assertRaises(ConnectionErrorException, cmd.get, timeout=1)

def test_client_read_timeout(self):
client = SSHClient(self.host, port=self.port,
Expand Down

0 comments on commit 1479dd0

Please sign in to comment.