Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-06-06 23:00:44 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-06-06 23:00:44 +0300
commit985d35546701504c232cfd1851b792cfc618a4db (patch)
tree822d08ac6178ce03c3a5a38910f5a4a33d8da5e0 /db
parent6ac1caa01a4c059f5bcb7c9da2e83001e5469f73 (diff)
Fix error while seeding projects in database
Diffstat (limited to 'db')
-rw-r--r--db/fixtures/development/04_project.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/db/fixtures/development/04_project.rb b/db/fixtures/development/04_project.rb
index c2b8f7ba819..6553c5d457a 100644
--- a/db/fixtures/development/04_project.rb
+++ b/db/fixtures/development/04_project.rb
@@ -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 '.'