From 9d421cb022ee60524f2fdc2cd40842517684e360 Mon Sep 17 00:00:00 2001
From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Fri, 3 Sep 2010 21:15:15 -0700
Subject: [PATCH] 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.

---
 src/allmydata/test/test_hung_server.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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)
-- 
2.45.2