From 20b6e2f83738f64e0532060085881f8be9091d2e Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Wed, 23 Sep 2015 16:21:25 -0700 Subject: [PATCH] fix test break --- test/test_scheduling.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_scheduling.rb b/test/test_scheduling.rb index 8eda29b0..8cb0654e 100644 --- a/test/test_scheduling.rb +++ b/test/test_scheduling.rb @@ -25,9 +25,11 @@ class TestScheduling < Sidekiq::Test assert ScheduledWorker.perform_in(5.days.from_now, 'mike') assert_equal 3, ss.size + q = Sidekiq::Queue.new("custom_queue") + qs = q.size assert ScheduledWorker.perform_in(-300, 'mike') 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_equal 5, ss.size