From f10f9a8646cc72b0bf7e6273def65eb05e44e7ab Mon Sep 17 00:00:00 2001 From: david-sarah Date: Tue, 3 Aug 2010 03:20:58 -0700 Subject: [PATCH] test_storage.py: avoid spurious test failure by accepting either 'Next crawl in 59 minutes' or 'Next crawl in 60 minutes'. fixes #1140 --- src/allmydata/test/test_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.2