From f10aa59e5b4c339c872795a214605cfbf65319fc Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 19 Feb 2009 00:58:18 -0700 Subject: [PATCH] test_crawler: don't require >=1 cycle on cygwin --- src/allmydata/test/test_crawler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/allmydata/test/test_crawler.py b/src/allmydata/test/test_crawler.py index b9e737b1..a0a21cbb 100644 --- a/src/allmydata/test/test_crawler.py +++ b/src/allmydata/test/test_crawler.py @@ -291,8 +291,10 @@ class Basic(unittest.TestCase, StallMixin, pollmixin.PollMixin): # On windows I'll extend the allowable range. min_ok = 20 + min_cycles = 1 if "cygwin" in sys.platform.lower() or "win32" in sys.platform.lower(): min_ok = 3 + min_cycles = 0 start = time.time() d = self.stall(delay=4.0) @@ -300,7 +302,7 @@ class Basic(unittest.TestCase, StallMixin, pollmixin.PollMixin): elapsed = time.time() - start percent = 100.0 * c.accumulated / elapsed self.failUnless(min_ok < percent < 70, "crawler got %d%%" % percent) - self.failUnless(c.cycles >= 1, c.cycles) + self.failUnless(c.cycles >= min_cycles, c.cycles) d.addCallback(_done) return d -- 2.45.2