immutable: whoops, it actually takes up to 39 reads sometimes to download a corrupted...
authorZooko O'Whielacronx <zooko@zooko.com>
Sat, 3 Jan 2009 00:43:02 +0000 (17:43 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Sat, 3 Jan 2009 00:43:02 +0000 (17:43 -0700)
src/allmydata/test/test_immutable.py

index 2a2dc6b8c272c422e5fe925983f92db338ac5f9b..9afaff3963f1fa9c7e699e88fc956c47614604f8 100644 (file)
@@ -441,11 +441,11 @@ class Test(ShareManglingMixin, unittest.TestCase):
         def _after_attempt(unused=None):
             after_download_reads = self._count_reads()
             # To pass this test, you are required to give up before reading all of the share
-            # data.  Actually, we could give up sooner than 37 reads, but currently our download
-            # code does 37 reads.  This test then serves as a "performance regression detector"
+            # data.  Actually, we could give up sooner than 39 reads, but currently our download
+            # code does 39 reads.  This test then serves as a "performance regression detector"
             # -- if you change download code so that it takes *more* reads, then this test will
             # fail.
-            self.failIf(after_download_reads-before_download_reads > 37, (after_download_reads, before_download_reads))
+            self.failIf(after_download_reads-before_download_reads > 39, (after_download_reads, before_download_reads))
         d.addCallback(_after_attempt)
         return d