From 2bd87498498d7c44fbf928a3a6bb0bf58e63c0e8 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Wed, 4 Aug 2010 10:55:55 -0700 Subject: [PATCH] test_download: minor cleanup --- src/allmydata/test/test_download.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allmydata/test/test_download.py b/src/allmydata/test/test_download.py index 42d3c696..700594a2 100644 --- a/src/allmydata/test/test_download.py +++ b/src/allmydata/test/test_download.py @@ -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 -- 2.45.2