]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_download: minor cleanup
authorBrian Warner <warner@lothar.com>
Wed, 4 Aug 2010 17:55:55 +0000 (10:55 -0700)
committerBrian Warner <warner@lothar.com>
Wed, 4 Aug 2010 17:55:55 +0000 (10:55 -0700)
src/allmydata/test/test_download.py

index 42d3c696c20956eb9b97d8ef0ffa0a25dd4dbda5..700594a2aeeac5550ddccbcaa8f84910d2c60de0 100644 (file)
@@ -327,15 +327,15 @@ class DownloadTest(_Base, unittest.TestCase):
         self.c0 = self.g.clients[0]
         self.load_shares()
         n = self.c0.create_node_from_uri(immutable_uri)
-        n._cnode._maybe_create_download_node()
 
         # Cause the downloader to guess a segsize that's too low, so it will
         # ask for a segment number that's too high (beyond the end of the
         # real list, causing BadSegmentNumberError), to exercise
         # Segmentation._retry_bad_segment
+        n._cnode._maybe_create_download_node()
+        n._cnode._node._build_guessed_tables(90)
 
         con1 = MemoryConsumer()
-        n._cnode._node._build_guessed_tables(90)
         # plaintext size of 310 bytes, wrong-segsize of 90 bytes, will make
         # us think that file[180:200] is in the third segment (segnum=2), but
         # really there's only one segment