test/test_scheduled.rb in sidekiq-3.4.1 vs test/test_scheduled.rb in sidekiq-3.4.2

- old
+ new

@@ -96,11 +96,11 @@ it 'generates random intervals that target a configured average' do with_sidekiq_option(:poll_interval_average, 10) do i = 500 intervals = i.times.map{ @poller.send(:random_poll_interval) } - assert intervals.all?{|i| i >= 5} - assert intervals.all?{|i| i <= 15} + assert intervals.all?{|x| x >= 5} + assert intervals.all?{|x| x <= 15} assert_in_delta 10, intervals.reduce(&:+).to_f / i, 0.5 end end it 'calculates an average poll interval based on the number of known Sidekiq processes' do