test_mutable: workaround: use more peers to avoid random test failures.

The underlying issue is recorded in #211: one corrupt share in a query
response will cause us to ignore the remaining shares in that response, even
if they are good. In our tests (with N=10 but only 5 peers), this can leave
us with too few shares to recover the file.

The temporary workaround is to use 10 peers, to make sure we never get
multiple shares per response. The real fix will be to fix the control flow.

This fixes #209.
This commit is contained in:
Brian Warner 2007-11-15 14:55:00 -07:00
parent 8742f2806d
commit 8a2736480a

View File

@ -311,6 +311,7 @@ class SystemTest(testutil.SignalMixin, unittest.TestCase):
NEWERDATA = "this is getting old"
d = self.set_up_nodes()
def _create_mutable(res):
c = self.clients[0]
log.msg("starting create_mutable_file")