Commit 5958a32b authored by Igor Drozdov's avatar Igor Drozdov

Merge branch 'sh-disable-transaction-check-user-sees-pipeline-spec' into 'master'

Disable transaction checks for threaded spec

See merge request gitlab-org/gitlab!50560
parents d5f071c1 72ec0eb4
......@@ -238,12 +238,16 @@ RSpec.describe 'Merge request > User sees pipelines', :js do
threads = []
threads << Thread.new do
Sidekiq::Worker.skipping_transaction_check do
@merge_request = MergeRequests::CreateService.new(project, user, merge_request_params).execute
end
end
threads << Thread.new do
Sidekiq::Worker.skipping_transaction_check do
@pipeline = Ci::CreatePipelineService.new(project, user, build_push_data).execute(:push)
end
end
threads.each { |thr| thr.join }
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment