Set concurrency spec to pending

It's not working at all in Rails 5. There's new concurrency modules in Rails 5, we should investigate them...
This commit is contained in:
Matt-Yorkley
2021-01-24 22:51:20 +00:00
parent 3748d92bc8
commit 9e83cb65db

View File

@@ -44,7 +44,10 @@ describe CheckoutController, concurrency: true, type: :controller do
allow(controller).to receive(:current_order_cycle).and_return(order.order_cycle)
end
it "handles two concurrent orders successfully" do
# This spec does not seem to be running in two threads in Rails 5. There are errors for the
# same response headers being set twice, possibly indicating that there is only one response
# as opposed to two separate requests in two threads?
xit "handles two concurrent orders successfully" do
# New threads start running straight away. The breakpoint is after loading
# the order and before advancing the order's state and making payments.
breakpoint.lock