From: Brian Warner Date: Thu, 19 Feb 2009 07:58:18 +0000 (-0700) Subject: test_crawler: don't require >=1 cycle on cygwin X-Git-Tag: allmydata-tahoe-1.4.0~184 X-Git-Url: https://git.rkrishnan.org/pf/content/en/footer/statistics?a=commitdiff_plain;h=f10aa59e5b4c339c872795a214605cfbf65319fc;p=tahoe-lafs%2Ftahoe-lafs.git test_crawler: don't require >=1 cycle on cygwin --- 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