diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-18 11:51:47 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-18 11:51:47 +0200 |
commit | 73c7b968850b77dd2d740b494b4a98adb1222d41 (patch) | |
tree | 8d2128c81b2f8ce3a1f3d29a228e0732b7907544 /spec | |
parent | 2930c0e3d090d5b33133160d847153a215ab059a (diff) | |
download | gitlab-ce-73c7b968850b77dd2d740b494b4a98adb1222d41.tar.gz |
Remove migration dependency from stage_id migration
Diffstat (limited to 'spec')
-rw-r--r-- | spec/migrations/clean_stage_id_reference_migration_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/migrations/clean_stage_id_reference_migration_spec.rb b/spec/migrations/clean_stage_id_reference_migration_spec.rb index 0518c4de799..1b8d044ed61 100644 --- a/spec/migrations/clean_stage_id_reference_migration_spec.rb +++ b/spec/migrations/clean_stage_id_reference_migration_spec.rb @@ -1,11 +1,12 @@ require 'spec_helper' require Rails.root.join('db', 'migrate', '20170710083355_clean_stage_id_reference_migration.rb') +require Rails.root.join('db', 'post_migrate', '20170628080858_migrate_stage_id_reference_in_background') describe CleanStageIdReferenceMigration, :migration, :sidekiq, :redis do let(:migration) { MigrateStageIdReferenceInBackground::MIGRATION } context 'when there are pending background migrations' do - it 'processes enqueued jobs synchronously' do + it 'processes pending jobs synchronously' do Sidekiq::Testing.disable! do BackgroundMigrationWorker.perform_in(2.minutes, migration, [1]) BackgroundMigrationWorker.perform_async(migration, [1]) |