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

Jeremy Hylton jeremy at zope.com
Thu Oct 16 11:07:55 EDT 2003


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

Modified Files:
      Tag: Zope-2_7-branch
	forker.py 
Log Message:
Port boost to forker timeout from head.


=== ZODB3/ZEO/tests/forker.py 1.37.6.2 => 1.37.6.3 ===
--- ZODB3/ZEO/tests/forker.py:1.37.6.2	Wed Oct  8 11:41:29 2003
+++ ZODB3/ZEO/tests/forker.py	Thu Oct 16 11:07:55 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