]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
immutable: make the test of large files more likely to work by requesting to allocate...
authorZooko O'Whielacronx <zooko@zooko.com>
Wed, 31 Dec 2008 22:59:42 +0000 (15:59 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Wed, 31 Dec 2008 22:59:42 +0000 (15:59 -0700)
src/allmydata/test/test_storage.py

index e5c3584fd8eb162ee83e3172a74bf32cbaf24d07..3548c5cbde6731ea23bfc479f5a485ead445db15 100644 (file)
@@ -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.  :-(