]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
tests: assign the storage servers to a fixed order which triggers a bug in new downlo...
authorZooko O'Whielacronx <zooko@zooko.com>
Sat, 4 Sep 2010 04:15:15 +0000 (21:15 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Sat, 4 Sep 2010 04:15:15 +0000 (21:15 -0700)
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.

src/allmydata/test/test_hung_server.py

index bc331c211a9997e1cabefb6dcd77dd3db9130dec..e63cba329ceff3ddd0c1e0e7076e9e015139dd97 100644 (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)