Do not compare float with integer in migrations specs
This commit is contained in:
parent
d953f1762e
commit
14e45c424f
|
@ -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_i + Time.now.to_i)
|
||||
job['at'].to_i == (delay.to_i + Time.now.to_i)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue