Commit 7f22a167 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'da-fix-db-seed' into 'master'

Fix error while seeding projects in database

See merge request !11953
parents 24511c48 985d3554
......@@ -71,7 +71,9 @@ Sidekiq::Testing.inline! do
# hook won't run until after the fixture is loaded. That is too late
# since the Sidekiq::Testing block has already exited. Force clearing
# the `after_commit` queue to ensure the job is run now.
project.send(:_run_after_commit_queue)
Sidekiq::Worker.skipping_transaction_check do
project.send(:_run_after_commit_queue)
end
if project.valid? && project.valid_repo?
print '.'
......
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