From: Zooko O'Whielacronx Date: Tue, 16 Oct 2007 03:07:42 +0000 (-0700) Subject: tests: make test_encode specify the erasure coding params it wants instead of expecti... X-Git-Tag: allmydata-tahoe-0.6.1~3 X-Git-Url: https://git.rkrishnan.org/pf/content/en/service/contact.html?a=commitdiff_plain;h=74f52d79f2fd619cddf4ddd9c3d3d65fbc6a6b6b;p=tahoe-lafs%2Ftahoe-lafs.git tests: make test_encode specify the erasure coding params it wants instead of expecting the defaults to be what it wants --- diff --git a/src/allmydata/test/test_encode.py b/src/allmydata/test/test_encode.py index f2303374..45c60bff 100644 --- a/src/allmydata/test/test_encode.py +++ b/src/allmydata/test/test_encode.py @@ -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)