[Zope-Checkins] CVS: Zope/lib/python/Products/Transience/tests - testTimeoutRelated.py:1.10
Chris McDonough
chrism@zope.com
Tue, 21 Jan 2003 02:55:26 -0500
Update of /cvs-repository/Zope/lib/python/Products/Transience/tests
In directory cvs.zope.org:/tmp/cvs-serv23681/tests
Modified Files:
testTimeoutRelated.py
Log Message:
Small refactoring and bug caught in computation of "plast" which had the potential to cause slowness.
=== Zope/lib/python/Products/Transience/tests/testTimeoutRelated.py 1.9 => 1.10 ===
--- Zope/lib/python/Products/Transience/tests/testTimeoutRelated.py:1.9 Wed Aug 14 18:25:14 2002
+++ Zope/lib/python/Products/Transience/tests/testTimeoutRelated.py Tue Jan 21 02:55:24 2003
@@ -96,9 +96,9 @@
timeout = self.timeout * 60
fauxtime.sleep(timeout + (timeout * .75))
sdo1 = self.app.sm.get('TempObject')
- for x in range(1, 100):
- # force the sdm to do housekeeping
- self.app.sm._getCurrentBucket()
+ # force the sdm to do housekeeping
+ self.app.sm._housekeep(self.app.sm._deindex_next() -
+ self.app.sm._period)
now = fauxtime.time()
k = sdo.get('endtime')
assert (type(k) == type(now)), type(k)