Commit 9abccd1f authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 7be38418
......@@ -418,6 +418,8 @@ def commit(description, skipIfEmpty=False): # -> tid | None
assert isinstance(zconn, Connection)
assert len(zconn._registered_objects) > 0
obj = zconn._registered_objects[0]
# FIXME vvv fails sometims with obj._p_state=0 (UPTODATE)
# see e.g. https://erp5.nexedi.net/test_result_module/20201016-89AA413F/5
assert obj._p_state == CHANGED, obj._p_state
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