summaryrefslogtreecommitdiff
path: root/spec/migrations/migrate_stage_id_reference_in_background_spec.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-07 15:50:33 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-07 15:50:33 +0200
commit320229e12aea3c5f52bcf0fb413bb35138ef7c25 (patch)
tree65aae897f4877115c077fd3c6716dc916f0425ed /spec/migrations/migrate_stage_id_reference_in_background_spec.rb
parentc467451ea6f39f498b458e11b5f8a74c53d3541d (diff)
downloadgitlab-ce-320229e12aea3c5f52bcf0fb413bb35138ef7c25.tar.gz
Do not schedule bg migration when it is not needed
Diffstat (limited to 'spec/migrations/migrate_stage_id_reference_in_background_spec.rb')
-rw-r--r--spec/migrations/migrate_stage_id_reference_in_background_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/migrations/migrate_stage_id_reference_in_background_spec.rb b/spec/migrations/migrate_stage_id_reference_in_background_spec.rb
index e829a9238f6..260378adaa7 100644
--- a/spec/migrations/migrate_stage_id_reference_in_background_spec.rb
+++ b/spec/migrations/migrate_stage_id_reference_in_background_spec.rb
@@ -51,8 +51,7 @@ describe MigrateStageIdReferenceInBackground, :migration, :sidekiq do
expect(described_class::MIGRATION).to be_scheduled_migration(2.minutes, 1, 2)
expect(described_class::MIGRATION).to be_scheduled_migration(2.minutes, 3, 3)
expect(described_class::MIGRATION).to be_scheduled_migration(4.minutes, 4, 5)
- expect(described_class::MIGRATION).to be_scheduled_migration(4.minutes, 6, 6)
- expect(BackgroundMigrationWorker.jobs.size).to eq 4
+ expect(BackgroundMigrationWorker.jobs.size).to eq 3
end
end
end