Fix error while seeding projects in database

This commit is contained in:
Douglas Barbosa Alexandre 2017-06-06 17:00:44 -03:00
parent 6ac1caa01a
commit 985d355467

View file

@ -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.
Sidekiq::Worker.skipping_transaction_check do
project.send(:_run_after_commit_queue)
end
if project.valid? && project.valid_repo?
print '.'