From: Brian Warner Date: Fri, 6 Feb 2009 08:33:05 +0000 (-0700) Subject: test_backupdb.py: reset the check-timers after one step, otherwise a slow host can... X-Git-Tag: allmydata-tahoe-1.3.0~71 X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/using.html?a=commitdiff_plain;h=9933aa0d4964fc46817fb54fb11ec95a3307eb2e;p=tahoe-lafs%2Ftahoe-lafs.git test_backupdb.py: reset the check-timers after one step, otherwise a slow host can false-fail --- diff --git a/src/allmydata/test/test_backupdb.py b/src/allmydata/test/test_backupdb.py index 3af720b8..0c209e13 100644 --- a/src/allmydata/test/test_backupdb.py +++ b/src/allmydata/test/test_backupdb.py @@ -116,6 +116,9 @@ class BackupDB(unittest.TestCase): self.failUnlessEqual(r.should_check(), True) r.did_check_healthy("results") # we know they're ignored for now + bdb.NO_CHECK_BEFORE = 200 + bdb.ALWAYS_CHECK_AFTER = 400 + r = bdb.check_file(blah_fn) self.failUnlessEqual(r.was_uploaded(), "blah-cap") self.failUnlessEqual(r.should_check(), False)