[Zodb-checkins] CVS: StandaloneZODB/ZEO/tests - stress.py:1.2.4.2
Jeremy Hylton
jeremy@zope.com
Tue, 15 Jan 2002 12:27:02 -0500
Update of /cvs-repository/StandaloneZODB/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv1665
Modified Files:
Tag: Standby-branch
stress.py
Log Message:
Add wait_for_server_on_startup to ClientStorage constructor call.
=== StandaloneZODB/ZEO/tests/stress.py 1.2.4.1 => 1.2.4.2 ===
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 1.1 (ZPL). A copy of the ZPL should accompany this
-# distribution. THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL
-# EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST
-# INFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
-
"""A ZEO client-server stress test to look for leaks.
The stress test should run in an infinite loop and should involve
@@ -100,7 +91,8 @@
if pid != 0:
return pid
- storage = ClientStorage(zaddr, debug=1, min_disconnect_poll=0.5)
+ storage = ClientStorage(zaddr, debug=1, min_disconnect_poll=0.5,
+ wait_for_server_on_startup=1)
db = ZODB.DB(storage, pool_size=NUM_CONNECTIONS)
setup(db.open())
conns = []