spec/support/sleep_and_wait.rb in celluloid-0.17.1.2 vs spec/support/sleep_and_wait.rb in celluloid-0.17.2
- old
+ new
@@ -4,10 +4,10 @@
::Timeout.timeout(timeout) do
loop until yield
end
diff = Time.now.to_f - t1
- STDERR.puts "wait took a bit long: #{diff} seconds" if diff > 0.4
+ STDERR.puts "wait took a bit long: #{diff} seconds" if diff > Specs::TIMER_QUANTUM
rescue Timeout::Error
t2 = Time.now.to_f
raise "Timeout after: #{t2 - t1} seconds"
end
end