Commit e477014a authored by Jim Fulton's avatar Jim Fulton

Updated the tpc_abort test to be a bit more careful about handling new serials.

parent 4aa0781b
...@@ -377,6 +377,13 @@ stored are discarded. ...@@ -377,6 +377,13 @@ stored are discarded.
>>> open('blobfile2', 'w').write('This data should go away too') >>> open('blobfile2', 'w').write('This data should go away too')
>>> s2 = blob_storage.storeBlob(new_oid, '\0'*8, olddata, 'blobfile2', >>> s2 = blob_storage.storeBlob(new_oid, '\0'*8, olddata, 'blobfile2',
... '', t) ... '', t)
>>> serials = blob_storage.tpc_vote(t)
>>> if s1 is None:
... s1 = [s for (oid, s) in serials if oid == blob._p_oid][0]
>>> if s2 is None:
... s2 = [s for (oid, s) in serials if oid == new_oid][0]
>>> blob_storage.tpc_abort(t) >>> blob_storage.tpc_abort(t)
Now, the serial for the existing blob should be the same: Now, the serial for the existing blob should be the same:
......
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