Commit ba8ee57f authored by Jim Fulton's avatar Jim Fulton

Fixed a test bug that led to spurious failures.

parent 29936392
...@@ -85,15 +85,6 @@ Now, let's see if we can break it. :) ...@@ -85,15 +85,6 @@ Now, let's see if we can break it. :)
... c.transaction_manager.abort() ... c.transaction_manager.abort()
... c.close() ... 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 >>> import threading
>>> threadf = threading.Thread(target=f) >>> threadf = threading.Thread(target=f)
>>> threadg = threading.Thread(target=f) >>> threadg = threading.Thread(target=f)
...@@ -107,7 +98,7 @@ Now, let's see if we can break it. :) ...@@ -107,7 +98,7 @@ Now, let's see if we can break it. :)
... t = tm2.begin() ... t = tm2.begin()
... if r2[1].v + r2[2].v: ... if r2[1].v + r2[2].v:
... print 'oops', r2[1], r2[2] ... print 'oops', r2[1], r2[2]
... if r2[1].v == 900: ... if r2[1].v == 800:
... break # we caught up ... break # we caught up
... path = s2.fshelper.getBlobFilename(*blob_id) ... path = s2.fshelper.getBlobFilename(*blob_id)
... if os.path.exists(path): ... if os.path.exists(path):
......
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