mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Improve schedule test speed
This commit is contained in:
parent
bf708447c3
commit
1df36bc933
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ class TestScheduled < Sidekiq::Test
|
|||
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) }
|
||||
intervals = Array.new(i){ @poller.send(:random_poll_interval) }
|
||||
|
||||
assert intervals.all?{|x| x >= 5}
|
||||
assert intervals.all?{|x| x <= 15}
|
||||
|
|
Loading…
Add table
Reference in a new issue