From: Zooko O'Whielacronx Date: Wed, 31 Dec 2008 22:59:42 +0000 (-0700) Subject: immutable: make the test of large files more likely to work by requesting to allocate... X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/%22doc.html/COPYING.GPL?a=commitdiff_plain;h=63efa1665b010cdde711c0e6024962ba1c486b00;p=tahoe-lafs%2Ftahoe-lafs.git immutable: make the test of large files more likely to work by requesting to allocate space for only one huge share, not three --- diff --git a/src/allmydata/test/test_storage.py b/src/allmydata/test/test_storage.py index e5c3584f..3548c5cb 100644 --- a/src/allmydata/test/test_storage.py +++ b/src/allmydata/test/test_storage.py @@ -257,9 +257,9 @@ class Server(unittest.TestCase): def test_large_share(self): ss = self.create("test_large_share") - already,writers = self.allocate(ss, "allocate", [0,1,2], 2**32+2) + already,writers = self.allocate(ss, "allocate", [0], 2**32+2) self.failUnlessEqual(already, set()) - self.failUnlessEqual(set(writers.keys()), set([0,1,2])) + self.failUnlessEqual(set(writers.keys()), set([0])) shnum, bucket = writers.items()[0] # This test is going to hammer your filesystem if it doesn't make a sparse file for this. :-(