OrderChangeManager: Prevent race conditions (Z#23131769) (#3623)

This commit is contained in:
Raphael Michel
2023-10-09 16:00:58 +02:00
committed by GitHub
parent 0cbb38f3d4
commit d8ecb43e5d
2 changed files with 7 additions and 0 deletions

View File

@@ -3733,6 +3733,7 @@ def test_issue_when_paid_and_changed(event):
op.refresh_from_db()
assert op.secret == gc1.secret
order.refresh_from_db()
ocm = OrderChangeManager(order)
ocm.add_position(ticket, None, Decimal('12.00'))
ocm.commit()