[Zodb-checkins] CVS: StandaloneZODB/ZODB/tests - MTStorage.py:1.1.2.3

Jeremy Hylton jeremy@zope.com
Mon, 7 Jan 2002 11:07:18 -0500


Update of /cvs-repository/StandaloneZODB/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv6654/ZODB/tests

Modified Files:
      Tag: Standby-branch
	MTStorage.py 
Log Message:
Be prepared for conflict errors in the final read.



=== StandaloneZODB/ZODB/tests/MTStorage.py 1.1.2.2 => 1.1.2.3 ===
             except ConflictError:
                 get_transaction().abort()
-        return root.get(name)
+        for i in range(10):
+            try:
+                return root.get(name)
+            except ConflictError:
+                get_transaction().abort()
 
 class StorageClientThread(threading.Thread):