]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_backupdb.py: reset the check-timers after one step, otherwise a slow host can...
authorBrian Warner <warner@lothar.com>
Fri, 6 Feb 2009 08:33:05 +0000 (01:33 -0700)
committerBrian Warner <warner@lothar.com>
Fri, 6 Feb 2009 08:33:05 +0000 (01:33 -0700)
src/allmydata/test/test_backupdb.py

index 3af720b8de00129686d7d6d56f8fea95644f8ab0..0c209e136c5ee01ec33b9eacad22d2cc9edd5407 100644 (file)
@@ -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)