Rev 3878: Add a test case that checks the 100MB limit. in http://bzr.arbash-meinel.com/branches/bzr/1.11/303538_max_readv
John Arbash Meinel
john at arbash-meinel.com
Tue Dec 2 01:22:10 GMT 2008
At http://bzr.arbash-meinel.com/branches/bzr/1.11/303538_max_readv
------------------------------------------------------------
revno: 3878
revision-id: john at arbash-meinel.com-20081202012200-bihdf9fybjwk3ey0
parent: john at arbash-meinel.com-20081201232022-3vu5ekhfvnnzyujr
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 303538_max_readv
timestamp: Mon 2008-12-01 19:22:00 -0600
message:
Add a test case that checks the 100MB limit.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_transport.py'
--- a/bzrlib/tests/test_transport.py 2008-09-10 19:14:43 +0000
+++ b/bzrlib/tests/test_transport.py 2008-12-02 01:22:00 +0000
@@ -225,6 +225,16 @@
[(10, 10), (20, 10), (30, 50), (80, 100)],
)
+ def test_coalesce_default_limit(self):
+ # By default we use a 100MB max size.
+ ten_mb = 10*1024*1024
+ self.check([(0, 10*ten_mb, [(i*ten_mb, ten_mb) for i in range(10)]),
+ (10*ten_mb, ten_mb, [(0, ten_mb)])],
+ [(i*ten_mb, ten_mb) for i in range(11)])
+ self.check([(0, 11*ten_mb, [(i*ten_mb, ten_mb) for i in range(11)]),],
+ [(i*ten_mb, ten_mb) for i in range(11)],
+ max_size=1*1024*1024*1024)
+
class TestMemoryTransport(TestCase):
More information about the bazaar-commits
mailing list