summaryrefslogtreecommitdiff
path: root/spec/migrations
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2018-10-16 13:39:18 +0200
committerToon Claes <toon@gitlab.com>2018-11-27 22:48:55 +0100
commitcc70bd8440d5de0c3e25dfa6e94337d4fbd245d3 (patch)
tree80646cc0bd7894d29047c6938664dd54800cba93 /spec/migrations
parent1f2c9915f6f3dded3fc578324d840919625c26df (diff)
downloadgitlab-ce-cc70bd8440d5de0c3e25dfa6e94337d4fbd245d3.tar.gz
Move code to a BackgroundMigration
And run in intervals.
Diffstat (limited to 'spec/migrations')
-rw-r--r--spec/migrations/backfill_store_project_full_path_in_repo_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/migrations/backfill_store_project_full_path_in_repo_spec.rb b/spec/migrations/backfill_store_project_full_path_in_repo_spec.rb
index f2651f8a02f..b5e770e6b01 100644
--- a/spec/migrations/backfill_store_project_full_path_in_repo_spec.rb
+++ b/spec/migrations/backfill_store_project_full_path_in_repo_spec.rb
@@ -12,6 +12,12 @@ describe BackfillStoreProjectFullPathInRepo, :migration do
subject(:migration) { described_class.new }
+ around do |example|
+ Sidekiq::Testing.inline! do
+ example.run
+ end
+ end
+
describe '#up' do
shared_examples_for 'writes the full path to git config' do
it 'writes the git config' do