Commit 514d7f7b authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent e514617a
......@@ -125,9 +125,8 @@ def commit(description):
assert len(txn._resources) == 1
zconn = txn._resources[0]
assert isinstance(zconn, Connection)
assert len(zconn._added) > 0
k = set(zconn._added.keys()).pop()
obj = zconn._added[k]
assert len(zconn._registered_objects) > 0
obj = zconn._registered_objects[0]
assert obj._p_state == CHANGED
txn.commit()
return obj._p_serial
......
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