[Zope-Checkins] CVS: Zope/lib/python/Products/Transience/tests - testTimeoutRelated.py:1.9.6.1
Chris McDonough
chrism@zope.com
Tue, 21 Jan 2003 02:56:55 -0500
Update of /cvs-repository/Zope/lib/python/Products/Transience/tests
In directory cvs.zope.org:/tmp/cvs-serv24086/tests
Modified Files:
Tag: Zope-2_6-branch
testTimeoutRelated.py
Log Message:
Small refactoring and bug fixed which had the potential to cause slowness.
=== Zope/lib/python/Products/Transience/tests/testTimeoutRelated.py 1.9 => 1.9.6.1 ===
--- 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:56:52 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)