Skip to content
Snippets Groups Projects
Commit 14e45c42 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Do not compare float with integer in migrations specs

parent d953f176
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment