diff --git a/src/allmydata/immutable/downloader/share.py b/src/allmydata/immutable/downloader/share.py
index f7ed4e8..413f907 100644
|
a
|
b
|
class Share: |
| 531 | 531 | for o in observers: |
| 532 | 532 | # goes to SegmentFetcher._block_request_activity |
| 533 | 533 | o.notify(state=COMPLETE, block=block) |
| | 534 | # now clear our received data, to dodge the #1170 spans.py |
| | 535 | # complexity bug |
| | 536 | self._received = DataSpans() |
| 534 | 537 | except (BadHashError, NotEnoughHashesError), e: |
| 535 | 538 | # rats, we have a corrupt block. Notify our clients that they |
| 536 | 539 | # need to look elsewhere, and advise the server. Unlike |
diff --git a/src/allmydata/test/test_immutable.py b/src/allmydata/test/test_immutable.py
index 813c5be..288332d 100644
|
a
|
b
|
class Test(common.ShareManglingMixin, common.ShouldFailMixin, unittest.TestCase) |
| 52 | 52 | def _after_download(unused=None): |
| 53 | 53 | after_download_reads = self._count_reads() |
| 54 | 54 | #print before_download_reads, after_download_reads |
| 55 | | self.failIf(after_download_reads-before_download_reads > 27, |
| | 55 | self.failIf(after_download_reads-before_download_reads > 36, |
| 56 | 56 | (after_download_reads, before_download_reads)) |
| 57 | 57 | d.addCallback(self._download_and_check_plaintext) |
| 58 | 58 | d.addCallback(_after_download) |
| … |
… |
class Test(common.ShareManglingMixin, common.ShouldFailMixin, unittest.TestCase) |
| 70 | 70 | def _after_download(unused=None): |
| 71 | 71 | after_download_reads = self._count_reads() |
| 72 | 72 | #print before_download_reads, after_download_reads |
| 73 | | self.failIf(after_download_reads-before_download_reads > 27, (after_download_reads, before_download_reads)) |
| | 73 | self.failIf(after_download_reads-before_download_reads > 37, (after_download_reads, before_download_reads)) |
| 74 | 74 | d.addCallback(self._download_and_check_plaintext) |
| 75 | 75 | d.addCallback(_after_download) |
| 76 | 76 | return d |