]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
tests: make test_encode specify the erasure coding params it wants instead of expecti...
authorZooko O'Whielacronx <zooko@zooko.com>
Tue, 16 Oct 2007 03:07:42 +0000 (20:07 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Tue, 16 Oct 2007 03:07:42 +0000 (20:07 -0700)
src/allmydata/test/test_encode.py

index f23033740c17f944b26836db11c37dd5e8478486..45c60bffc0e2f806eb9da2d75dc687df0ca981c3 100644 (file)
@@ -150,7 +150,7 @@ class Encode(unittest.TestCase):
                   expected_block_hashes, expected_share_hashes):
         data = make_data(datalen)
         # force use of multiple segments
-        options = {"max_segment_size": max_segment_size}
+        options = {"max_segment_size": max_segment_size, 'needed_and_happy_and_total_shares': (25, 75, 100)}
         e = encode.Encoder(options)
         u = upload.Data(data)
         eu = upload.EncryptAnUploadable(u)