mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
fix test break
This commit is contained in:
parent
c4b4bb148f
commit
20b6e2f837
1 changed files with 3 additions and 1 deletions
|
@ -25,9 +25,11 @@ class TestScheduling < Sidekiq::Test
|
||||||
assert ScheduledWorker.perform_in(5.days.from_now, 'mike')
|
assert ScheduledWorker.perform_in(5.days.from_now, 'mike')
|
||||||
assert_equal 3, ss.size
|
assert_equal 3, ss.size
|
||||||
|
|
||||||
|
q = Sidekiq::Queue.new("custom_queue")
|
||||||
|
qs = q.size
|
||||||
assert ScheduledWorker.perform_in(-300, 'mike')
|
assert ScheduledWorker.perform_in(-300, 'mike')
|
||||||
assert_equal 3, ss.size
|
assert_equal 3, ss.size
|
||||||
assert_equal 1, Sidekiq::Queue.new("custom_queue").size
|
assert_equal qs+1, q.size
|
||||||
|
|
||||||
assert Sidekiq::Client.push_bulk('class' => ScheduledWorker, 'args' => [['mike'], ['mike']], 'at' => 600)
|
assert Sidekiq::Client.push_bulk('class' => ScheduledWorker, 'args' => [['mike'], ['mike']], 'at' => 600)
|
||||||
assert_equal 5, ss.size
|
assert_equal 5, ss.size
|
||||||
|
|
Loading…
Reference in a new issue