Commit 14e45c42 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Do not compare float with integer in migrations specs

parent d953f176
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment