tests: assign the storage servers to a fixed order which triggers a bug in new downloader every time this test is run (formerly this test would detect the bug in new-downloader only sporadically)

If you are investigating the bug in new-downloader, one way to investigate might be to change this ordering to a different fixed order (e.g. rotate by 4 instead of rotate by 5) and observe how the behavior of new-downloader differs in that case.
This commit is contained in:
Zooko O'Whielacronx 2010-09-03 21:15:15 -07:00
parent 687c58d78c
commit 9d421cb022

View File

@ -101,7 +101,8 @@ class HungServerDownloadTest(GridTestMixin, ShouldFailMixin, PollMixin,
self.c0 = self.g.clients[0]
nm = self.c0.nodemaker
self.servers = [(id, ss) for (id, ss) in nm.storage_broker.get_all_servers()]
self.servers = sorted([(id, ss) for (id, ss) in nm.storage_broker.get_all_servers()])
self.servers = self.servers[5:] + self.servers[:5]
if mutable:
d = nm.create_mutable_file(mutable_plaintext)