mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-20 00:37:26 +00:00
The spec was setting the order's state to "complete" but didn't save that state to the database. The new locking mechanism is was reloading the order which loaded the cart state again. And since the order.next method was mocked to just return true, the controller was trying to do that in an infinite loop.