From: david-sarah Date: Tue, 3 Aug 2010 10:20:58 +0000 (-0700) Subject: test_storage.py: avoid spurious test failure by accepting either 'Next crawl in 59... X-Git-Tag: allmydata-tahoe-1.8.0b2~31 X-Git-Url: https://git.rkrishnan.org/%5B/frontends/-?a=commitdiff_plain;h=f10f9a8646cc72b0bf7e6273def65eb05e44e7ab;p=tahoe-lafs%2Ftahoe-lafs.git test_storage.py: avoid spurious test failure by accepting either 'Next crawl in 59 minutes' or 'Next crawl in 60 minutes'. fixes #1140 --- diff --git a/src/allmydata/test/test_storage.py b/src/allmydata/test/test_storage.py index c3153e85..90a40483 100644 --- a/src/allmydata/test/test_storage.py +++ b/src/allmydata/test/test_storage.py @@ -1445,7 +1445,7 @@ class BucketCounter(unittest.TestCase, pollmixin.PollMixin): html = w.renderSynchronously() s = remove_tags(html) self.failUnlessIn("Total buckets: 0 (the number of", s) - self.failUnlessIn("Next crawl in 59 minutes", s) + self.failUnless("Next crawl in 59 minutes" in s or "Next crawl in 60 minutes" in s, s) d.addCallback(_check2) return d