[Zodb-checkins] CVS: ZODB3/ZEO/tests - forker.py:1.40

Jeremy Hylton jeremy at zope.com
Wed Oct 15 10:41:32 EDT 2003


Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv22045

Modified Files:
	forker.py 
Log Message:
Boost the amount of time forker will wait for the server.

It looks like Connection refused errors in the test suite are the
result of a server taking a long time to get started -- usually when
the BDBStorage takes a long time to create.


=== ZODB3/ZEO/tests/forker.py 1.39 => 1.40 ===
--- ZODB3/ZEO/tests/forker.py:1.39	Wed Oct  8 11:46:46 2003
+++ ZODB3/ZEO/tests/forker.py	Wed Oct 15 10:41:29 2003
@@ -93,8 +93,10 @@
     d['PYTHONPATH'] = os.pathsep.join(sys.path)
     pid = os.spawnve(os.P_NOWAIT, sys.executable, tuple(args), d)
     adminaddr = ('localhost', port + 1)
-    # We need to wait until the server starts, but not forever
-    for i in range(20):
+    # We need to wait until the server starts, but not forever.
+    # 30 seconds is a somewhat arbitrary upper bound.  A BDBStorage
+    # takes a long time to open -- more than 10 seconds on occasion.
+    for i in range(120):
         time.sleep(0.25)
         try:
             zLOG.LOG('forker', zLOG.DEBUG, 'connect %s' % i)




More information about the Zodb-checkins mailing list