diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-03 14:02:51 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-07 16:08:15 +0300 |
commit | 24a4199ac5eb517e7a27e458d5d1b4f937480a31 (patch) | |
tree | ed6ae304b937dfb25cd9da6300c924f4aab9f5c2 /spec/migrations | |
parent | 5e2baaf39fc53e154d40b130eddbec756274cfe2 (diff) |
Reduce a delay between stage_id scheduled migrations
Diffstat (limited to 'spec/migrations')
-rw-r--r-- | spec/migrations/migrate_stage_id_reference_in_background_spec.rb | 8 |
1 files changed, 4 insertions, 4 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 2e5504c849d..a32a7fceb68 100644 --- a/spec/migrations/migrate_stage_id_reference_in_background_spec.rb +++ b/spec/migrations/migrate_stage_id_reference_in_background_spec.rb @@ -47,10 +47,10 @@ describe MigrateStageIdReferenceInBackground, :migration, :sidekiq do Timecop.freeze do migrate! - expect(described_class::MIGRATION).to be_scheduled_migration(5.minutes, 1) - expect(described_class::MIGRATION).to be_scheduled_migration(5.minutes, 2) - expect(described_class::MIGRATION).to be_scheduled_migration(10.minutes, 3) - expect(described_class::MIGRATION).to be_scheduled_migration(10.minutes, 4) + expect(described_class::MIGRATION).to be_scheduled_migration(2.minutes, 1) + expect(described_class::MIGRATION).to be_scheduled_migration(2.minutes, 2) + expect(described_class::MIGRATION).to be_scheduled_migration(4.minutes, 3) + expect(described_class::MIGRATION).to be_scheduled_migration(4.minutes, 4) expect(BackgroundMigrationWorker.jobs.size).to eq 5 end end |