summaryrefslogtreecommitdiff
path: root/db/fixtures/development/20_nested_groups.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/fixtures/development/20_nested_groups.rb')
-rw-r--r--db/fixtures/development/20_nested_groups.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/db/fixtures/development/20_nested_groups.rb b/db/fixtures/development/20_nested_groups.rb
index 8f64dfbd644..d9aea17aa16 100644
--- a/db/fixtures/development/20_nested_groups.rb
+++ b/db/fixtures/development/20_nested_groups.rb
@@ -23,8 +23,9 @@ Sidekiq::Testing.inline! do
full_path = url.sub('https://android.googlesource.com/', '')
full_path = full_path.sub(/\.git\z/, '')
full_path, _, project_path = full_path.rpartition('/')
- group = Group.find_by_full_path(full_path) ||
- Groups::NestedCreateService.new(user, group_path: full_path).execute
+ group = Sidekiq::Worker.skipping_transaction_check do
+ Group.find_by_full_path(full_path) || Groups::NestedCreateService.new(user, group_path: full_path).execute
+ end
params = {
import_url: url,