From 9933aa0d4964fc46817fb54fb11ec95a3307eb2e Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Fri, 6 Feb 2009 01:33:05 -0700 Subject: [PATCH] test_backupdb.py: reset the check-timers after one step, otherwise a slow host can false-fail --- src/allmydata/test/test_backupdb.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.45.2