Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions spec/request/lifecycle/service_brokers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@
stub_request(:get, 'http://example.org/my-service-broker-url/v2/catalog').
with(basic_auth: %w[admin password]).
to_return(status: 200, body: catalog, headers: {})

# Both jobs may be enqueued with the same timestamp, making pickup order non-deterministic.
# Give the delete job a higher priority number so the create job always runs first.
TestConfig.config[:jobs][:priorities] = { 'service_broker.delete': 10 }
end

it 'allows deletion during creation' do
Expand Down
Loading