1
0
Fork 0
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:
Mike Perham 2015-09-23 16:21:25 -07:00
parent c4b4bb148f
commit 20b6e2f837

View file

@ -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