From cc70bd8440d5de0c3e25dfa6e94337d4fbd245d3 Mon Sep 17 00:00:00 2001 From: Toon Claes Date: Tue, 16 Oct 2018 13:39:18 +0200 Subject: Move code to a BackgroundMigration And run in intervals. --- spec/migrations/backfill_store_project_full_path_in_repo_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spec/migrations') 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 -- cgit v1.2.1