]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_storage.py: avoid spurious test failure by accepting either 'Next crawl in 59...
authordavid-sarah <david-sarah@jacaranda.org>
Tue, 3 Aug 2010 10:20:58 +0000 (03:20 -0700)
committerdavid-sarah <david-sarah@jacaranda.org>
Tue, 3 Aug 2010 10:20:58 +0000 (03:20 -0700)
src/allmydata/test/test_storage.py

index c3153e857a2dc6c78d35d2aa5356f9b0de7540a9..90a404831f8fb8ed58eb5f605b8b7cce826f12fd 100644 (file)
@@ -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