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):
break
except ConflictError:
root._p_jar.sync()
else:
raise ConflictError("Exceeded %d attempts to store" % MAXRETRIES)
for i in range(MAXRETRIES):
for j in range(MAXRETRIES):
try:
return root.get(name)
except ConflictError:
root._p_jar.sync()
raise ConflictError("Exceeded %d attempts to read" % MAXRETRIES)
class StorageClientThread(TestThread):
__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