From: Zooko O'Whielacronx Date: Sat, 4 Sep 2010 04:15:15 +0000 (-0700) Subject: tests: assign the storage servers to a fixed order which triggers a bug in new downlo... X-Git-Url: https://git.rkrishnan.org/%5B/frontends/flags/%22file:/htmlfontify-example.html?a=commitdiff_plain;h=9d421cb022ee60524f2fdc2cd40842517684e360;p=tahoe-lafs%2Ftahoe-lafs.git 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. --- diff --git a/src/allmydata/test/test_hung_server.py b/src/allmydata/test/test_hung_server.py index bc331c21..e63cba32 100644 --- a/src/allmydata/test/test_hung_server.py +++ b/src/allmydata/test/test_hung_server.py @@ -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)