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

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
	testTransientObjectContainer.py 
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 
roll.
                                                                                
Remove "nudge" function in favor of "housekeep".

Set SPARE_BUCKETS back to 15.



=== Products/Transience/tests/testTransientObjectContainer.py 1.14.2.3.2.1 => 1.14.2.3.2.2 ===
--- Products/Transience/tests/testTransientObjectContainer.py:1.14.2.3.2.1	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