SVN: ZODB/trunk/src/ZEO/tests/zeo-fan-out.test Fixed a test bug that led to spurious failures.

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <20100429212757.ED1787083BD__45260.4544385851$1272576485$gmane$org@cvs.zope.org>
Log message for revision 111594:
  Fixed a test bug that led to spurious failures.
  

Changed:
  U   ZODB/trunk/src/ZEO/tests/zeo-fan-out.test

-=-
Modified: ZODB/trunk/src/ZEO/tests/zeo-fan-out.test
===================================================================
--- ZODB/trunk/src/ZEO/tests/zeo-fan-out.test	2010-04-29 21:27:55 UTC (rev 111593)
+++ ZODB/trunk/src/ZEO/tests/zeo-fan-out.test	2010-04-29 21:27:57 UTC (rev 111594)
@@ -85,15 +85,6 @@
     ...             c.transaction_manager.abort()
     ...     c.close()
 
-    >>> def g():
-    ...     c = db0.open(transaction.TransactionManager())
-    ...     r = c.root()
-    ...     for i in range(100):
-    ...         for j in range(1000, 2000):
-    ...             r[j].v += 1
-    ...         c.transaction_manager.commit()
-    ...     c.close()
-
     >>> import threading
     >>> threadf = threading.Thread(target=f)
     >>> threadg = threading.Thread(target=f)
@@ -107,7 +98,7 @@
     ...     t = tm2.begin()
     ...     if r2[1].v + r2[2].v:
     ...         print 'oops', r2[1], r2[2]
-    ...     if r2[1].v == 900:
+    ...     if r2[1].v == 800:
     ...         break # we caught up
     ...     path = s2.fshelper.getBlobFilename(*blob_id)
     ...     if os.path.exists(path):
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.