diff options
| author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-06-29 15:22:06 +0200 |
|---|---|---|
| committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-06-29 15:22:06 +0200 |
| commit | c7f6e5efb51d28242bfe5102b9db9cd7a6c1e24b (patch) | |
| tree | 2d86d3f9c9d41b10a9febb14af1695bea3af691a /spec/migrations | |
| parent | efa3511e0495f73b06e96e60538f8e719ffe97a4 (diff) | |
| download | gitlab-ce-c7f6e5efb51d28242bfe5102b9db9cd7a6c1e24b.tar.gz | |
Use integers to schedule delayed background migrations
Diffstat (limited to 'spec/migrations')
| -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 |
