diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-01-06 14:27:07 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-01-06 14:27:07 +0100 |
commit | aaa678cbc69ad5768d076a8e1cc3f249b2adeb29 (patch) | |
tree | 479411787ac2234b5096cc68e45e96c331599707 /spec/migrations | |
parent | 1ab0ffe3830340c0c9c2def74f59c95a44bcf9f7 (diff) | |
download | gitlab-ce-aaa678cbc69ad5768d076a8e1cc3f249b2adeb29.tar.gz |
Update specs for delayed background migration of stages
Diffstat (limited to 'spec/migrations')
-rw-r--r-- | spec/migrations/schedule_build_stage_migration_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/migrations/schedule_build_stage_migration_spec.rb b/spec/migrations/schedule_build_stage_migration_spec.rb index 485ff84819d..c96acceeeda 100644 --- a/spec/migrations/schedule_build_stage_migration_spec.rb +++ b/spec/migrations/schedule_build_stage_migration_spec.rb @@ -28,14 +28,14 @@ describe ScheduleBuildStageMigration, :migration do stub_const("#{described_class}::BATCH", 1) end - it 'schedules background migrations in batches in bulk' do + it 'schedules delayed background migrations in batches in bulk' do Sidekiq::Testing.fake! do Timecop.freeze do migrate! - expect(described_class::MIGRATION).to be_scheduled_migration(1.minute, 10) - expect(described_class::MIGRATION).to be_scheduled_migration(2.minutes, 20) - expect(described_class::MIGRATION).to be_scheduled_migration(3.minutes, 30) + expect(described_class::MIGRATION).to be_scheduled_delayed_migration(1.minute, 10) + expect(described_class::MIGRATION).to be_scheduled_delayed_migration(2.minutes, 20) + expect(described_class::MIGRATION).to be_scheduled_delayed_migration(3.minutes, 30) expect(BackgroundMigrationWorker.jobs.size).to eq 3 end end |