[Zope-Checkins] CVS: Zope/lib/python/Products/ZCatalog/tests -
testCatalog.py:1.27
Casey Duncan
casey at zope.com
Tue Mar 23 16:26:39 EST 2004
Update of /cvs-repository/Zope/lib/python/Products/ZCatalog/tests
In directory cvs.zope.org:/tmp/cvs-serv13469/tests
Modified Files:
testCatalog.py
Log Message:
Reduce catalog brains tendancy to eat conflict errors which could result in rand
om loss of valid results in high-concurrency situations. This problem is especially bad for applications (like CMF) that rely on catalog results as a way to get
a list of objects to act on.
=== Zope/lib/python/Products/ZCatalog/tests/testCatalog.py 1.26 => 1.27 ===
--- Zope/lib/python/Products/ZCatalog/tests/testCatalog.py:1.26 Thu Jan 8 02:44:32 2004
+++ Zope/lib/python/Products/ZCatalog/tests/testCatalog.py Tue Mar 23 16:26:38 2004
@@ -462,7 +462,7 @@
self._catalog.aq_parent = objRS(200)
def testRangeSearch(self):
- for i in range(10000):
+ for i in range(1000):
m = random.randrange(0,20000)
n = m + 1000
More information about the Zope-Checkins
mailing list