diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-06-29 15:22:06 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-07 15:08:15 +0200 |
commit | 01128b130b32fac3481fb3b386b649cb047b4b1f (patch) | |
tree | 89b16c01c6a8dbe1a5a65d058a325671aba2b5f3 /spec | |
parent | 989785a31def17a1f0b29b84f8920db96ccf80b1 (diff) | |
download | gitlab-ce-01128b130b32fac3481fb3b386b649cb047b4b1f.tar.gz |
Use integers to schedule delayed background migrations
Diffstat (limited to 'spec')
-rw-r--r-- | spec/migrations/migrate_stage_id_reference_in_background_spec.rb | 2 |
1 files changed, 1 insertions, 1 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 046d9b351a8..1bd2c14b61c 100644 --- a/spec/migrations/migrate_stage_id_reference_in_background_spec.rb +++ b/spec/migrations/migrate_stage_id_reference_in_background_spec.rb @@ -6,7 +6,7 @@ describe MigrateStageIdReferenceInBackground, :migration, :sidekiq do match do |migration| BackgroundMigrationWorker.jobs.any? do |job| job['args'] == [migration, expected] && - job['at'].to_f == (delay.to_f + Time.now.to_f) + job['at'].to_f == (delay.to_i + Time.now.to_i) end end |