commit ee6e475a347277ff6a387107219fa5ba79a7ae99 Author: Damian Johnson atagar@torproject.org Date: Wed Jun 6 09:53:03 2012 -0700
Targeting reader test at /usr rather than root dir
I've been running the reader's test_stop() integ test by running over the root direcctory because I simply needed something 'big' to keep the test occupied for a second or two. This turned out to inadvertantly fuzz the reader which is sorta a good thing since it discovered that block devices and encrypted partitions can be slow to read, causing stop() to block for a bit.
However, we don't want to run over people's private stuff, and slow reads on encrypted partitions probably isn't a problem that we want to solve anyway, so running over '/usr' instead. --- test/integ/descriptor/reader.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/test/integ/descriptor/reader.py b/test/integ/descriptor/reader.py index 0ae882e..0e6c867 100644 --- a/test/integ/descriptor/reader.py +++ b/test/integ/descriptor/reader.py @@ -281,7 +281,7 @@ class TestDescriptorReader(unittest.TestCase): """
is_test_running = True - reader = stem.descriptor.reader.DescriptorReader("/") + reader = stem.descriptor.reader.DescriptorReader("/usr")
# Fails the test after a couple seconds if we don't finish successfully. # Depending on what we're blocked on this might not work when the test
tor-commits@lists.torproject.org