Commit c160bc59 authored by Shane Hathaway's avatar Shane Hathaway

Be a little more informative when the vicious concurrency tests fail

parent a444dc5f
...@@ -96,13 +96,17 @@ class ZODBClientThread(TestThread): ...@@ -96,13 +96,17 @@ class ZODBClientThread(TestThread):
break break
except ConflictError: except ConflictError:
root._p_jar.sync() root._p_jar.sync()
else:
raise ConflictError("Exceeded %d attempts to store" % MAXRETRIES)
for i in range(MAXRETRIES): for j in range(MAXRETRIES):
try: try:
return root.get(name) return root.get(name)
except ConflictError: except ConflictError:
root._p_jar.sync() root._p_jar.sync()
raise ConflictError("Exceeded %d attempts to read" % MAXRETRIES)
class StorageClientThread(TestThread): class StorageClientThread(TestThread):
__super_init = TestThread.__init__ __super_init = TestThread.__init__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment