summaryrefslogtreecommitdiff
path: root/spec/migrations
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-06-28 12:21:25 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-06-28 12:21:25 +0200
commit02bb40e2acd7b1838e47e1a2f8b9288e42e6ca53 (patch)
tree96ad606eced04aa327cce17aa7adc7942a98106c /spec/migrations
parent6209ff671fdd025be31f9dcaf208a71b6ec2907d (diff)
downloadgitlab-ce-02bb40e2acd7b1838e47e1a2f8b9288e42e6ca53.tar.gz
Find builds that require a migration in batches
Diffstat (limited to 'spec/migrations')
-rw-r--r--spec/migrations/migrate_stage_id_reference_in_background_spec.rb2
1 files changed, 2 insertions, 0 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 ea3a18802d9..d515eb42b9d 100644
--- a/spec/migrations/migrate_stage_id_reference_in_background_spec.rb
+++ b/spec/migrations/migrate_stage_id_reference_in_background_spec.rb
@@ -8,6 +8,8 @@ describe MigrateStageIdReferenceInBackground, :migration, :redis do
let(:projects) { table(:projects) }
before do
+ stub_const('MigrateStageIdReferenceInBackground::BATCH_SIZE', 1)
+
projects.create!(id: 123, name: 'gitlab1', path: 'gitlab1')
pipelines.create!(id: 1, project_id: 123, ref: 'master', sha: 'adf43c3a')