Implement a strong locking check to avoid race conditions during payment

This commit is contained in:
Raphael Michel
2019-02-12 16:15:00 +01:00
parent 37183aced7
commit 78544cdb30
2 changed files with 19 additions and 3 deletions

View File

@@ -1517,6 +1517,7 @@ def test_refund_paid_order_automatically_failed(client, env, monkeypatch):
p.info_data = {
'id': 'foo'
}
p.save()
p.confirm()
client.login(email='dummy@dummy.dummy', password='dummy')
@@ -1556,6 +1557,7 @@ def test_refund_paid_order_automatically(client, env, monkeypatch):
p.info_data = {
'id': 'foo'
}
p.save()
p.confirm()
client.login(email='dummy@dummy.dummy', password='dummy')