diff options
author | Olle Lundberg <geek@nerd.sh> | 2014-08-13 16:56:14 +0200 |
---|---|---|
committer | Olle Lundberg <geek@nerd.sh> | 2014-08-13 17:42:48 +0200 |
commit | 80148a3039499fb52d7b5c7a583c14258ccf9cae (patch) | |
tree | 539432bfd184ef88c1c3bc1d4a20f7928f118f45 /tests | |
parent | 991d56bad32c1ea4eda6c86771a4a4b7bef00475 (diff) |
Change window and packet size to match opensshs'.
Update tests to match the new numbers.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_transport.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_transport.py b/tests/test_transport.py index 485a18e8..d84747b6 100644 --- a/tests/test_transport.py +++ b/tests/test_transport.py @@ -585,12 +585,13 @@ class TransportTest(ParamikoTest): self.assertEqual(chan.send_ready(), True) total = 0 K = '*' * 1024 - while total < 1024 * 1024: + limit = 1+(64 * 2 ** 15) + while total < limit: chan.send(K) total += len(K) if not chan.send_ready(): break - self.assertTrue(total < 1024 * 1024) + self.assertTrue(total < limit) schan.close() chan.close() |