Fix error while seeding projects in database
This commit is contained in:
parent
6ac1caa01a
commit
985d355467
1 changed files with 3 additions and 1 deletions
|
@ -71,7 +71,9 @@ Sidekiq::Testing.inline! do
|
||||||
# hook won't run until after the fixture is loaded. That is too late
|
# hook won't run until after the fixture is loaded. That is too late
|
||||||
# since the Sidekiq::Testing block has already exited. Force clearing
|
# since the Sidekiq::Testing block has already exited. Force clearing
|
||||||
# the `after_commit` queue to ensure the job is run now.
|
# the `after_commit` queue to ensure the job is run now.
|
||||||
|
Sidekiq::Worker.skipping_transaction_check do
|
||||||
project.send(:_run_after_commit_queue)
|
project.send(:_run_after_commit_queue)
|
||||||
|
end
|
||||||
|
|
||||||
if project.valid? && project.valid_repo?
|
if project.valid? && project.valid_repo?
|
||||||
print '.'
|
print '.'
|
||||||
|
|
Loading…
Reference in a new issue