[Zope-Checkins] CVS: Products/Transience/tests - testTransientObjectContainer.py:

Chris McDonough chrism at plope.com
Mon Sep 13 11:19:52 EDT 2004

Update of /cvs-repository/Products/Transience/tests
In directory cvs.zope.org:/tmp/cvs-serv19035/tests

Modified Files:
      Tag: chrism-pre273-branch
Log Message:
Add a knob (not exposed to UI) to turn off "inband" housekeeping Housekeeping
can now optionally be done using an external scheduling facility by calling the "housekeep" method regularly.
Break out actual work that _gc and _finalize do into separate _do methods
for legibility.
Dont raise Retry in _replentish if we're in a bucket shortage and we can't
get the lock.  Instead just soldier on and let the conflict happen naturally.
Create a "roll" function and attempt to prevent conflicts in _gc by using a 
Remove "nudge" function in favor of "housekeep".

Set SPARE_BUCKETS back to 15.

=== Products/Transience/tests/testTransientObjectContainer.py => ===
--- Products/Transience/tests/testTransientObjectContainer.py:	Sat Sep 11 20:59:32 2004
+++ Products/Transience/tests/testTransientObjectContainer.py	Mon Sep 13 11:19:52 2004
@@ -384,7 +384,7 @@
         for x in range(0, 100):
             self.t[x] = x
         fauxtime.sleep(self.period * (SPARE_BUCKETS + 2))
-        self.t.nudge()
+        self.t.housekeep()
         self.assertEqual(list(self.t._data.keys()), [])
     def _maxOut(self):

More information about the Zope-Checkins mailing list