summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-11 12:28:04 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-11 12:28:04 +0200
commit65b3c220090d8fbfcfb2c4ba3b4d70d3c30fd7e3 (patch)
tree64621f160315a2e1761384034ee783a43a7dcee5
parent1d087e073660130c81bf0917a6fa395886b6e2dc (diff)
downloadgitlab-ce-65b3c220090d8fbfcfb2c4ba3b4d70d3c30fd7e3.tar.gz
Fix pipeline stages statuses migration specs
-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