summaryrefslogtreecommitdiff
path: root/spec/migrations/migrate_stages_statuses_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/migrations/migrate_stages_statuses_spec.rb')
-rw-r--r--spec/migrations/migrate_stages_statuses_spec.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/migrations/migrate_stages_statuses_spec.rb b/spec/migrations/migrate_stages_statuses_spec.rb
index 7a424bdaedb..ace1efa44ba 100644
--- a/spec/migrations/migrate_stages_statuses_spec.rb
+++ b/spec/migrations/migrate_stages_statuses_spec.rb
@@ -12,7 +12,7 @@ describe MigrateStagesStatuses, :migration do
before do
stub_const("#{described_class.name}::BATCH_SIZE", 2)
- stub_const("#{described_class.name}::RANGE_SIZE", 1)
+ stub_const("#{described_class.name}::RANGE_SIZE", 2)
projects.create!(id: 1, name: 'gitlab1', path: 'gitlab1')
projects.create!(id: 2, name: 'gitlab2', path: 'gitlab2')
@@ -50,11 +50,9 @@ describe MigrateStagesStatuses, :migration do
Timecop.freeze do
migrate!
- puts BackgroundMigrationWorker.jobs.inspect
- expect(described_class::MIGRATION).to be_scheduled_migration(5.minutes, 1, 1)
- expect(described_class::MIGRATION).to be_scheduled_migration(5.minutes, 2, 2)
+ expect(described_class::MIGRATION).to be_scheduled_migration(5.minutes, 1, 2)
expect(described_class::MIGRATION).to be_scheduled_migration(10.minutes, 3, 3)
- expect(BackgroundMigrationWorker.jobs.size).to eq 3
+ expect(BackgroundMigrationWorker.jobs.size).to eq 2
end
end
end