Files
openfoodnetwork/spec/controllers
Maikel Linke ec1b5a7a92 Test concurrent checkouts
When two people tried to buy the same item at the same time, it was
possible to oversell the item and end up with negative stock.

Parallel checkouts could also lead to other random failures. This spec
is testing that scenario by starting two threads which would run into a
race condition unless they use effective synchronisation. The added spec
fails if the synchronisation is removed from the CheckoutController.
2019-11-19 18:18:01 +11:00
..
2019-07-17 12:08:51 +01:00
2019-11-10 18:42:43 +00:00
2019-11-10 18:42:43 +00:00