[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/tests/zeo-fan-out.test Fixed a test bug that led to spurious failures.
Jim Fulton
jim at zope.com
Thu Apr 29 17:27:57 EDT 2010
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):
More information about the Zodb-checkins
mailing list