Skip to content

Commit

Permalink
Fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Aug 31, 2014
1 parent ac69c7e commit 626ece7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/test_client.rb
Expand Up @@ -105,13 +105,6 @@ class MyWorker
@redis.verify
end

it 'handles perform_async on failure' do
@redis.expect :lpush, nil, ['queue:default', Array]
pushed = MyWorker.perform_async(1, 2)
refute pushed
@redis.verify
end

it 'enqueues messages to redis' do
@redis.expect :lpush, 1, ['queue:default', Array]
pushed = Sidekiq::Client.enqueue(MyWorker, 1, 2)
Expand Down Expand Up @@ -266,6 +259,7 @@ class DWorker < BaseWorker
end
it 'allows Resque helpers to point to different Redi' do
conn = MiniTest::Mock.new
conn.expect(:multi, []) { |*args, &block| block.call }
conn.expect(:zadd, 1, [String, Array])
DWorker.sidekiq_options('pool' => ConnectionPool.new(size: 1) { conn })
Sidekiq::Client.enqueue_in(10, DWorker, 3)
Expand Down

0 comments on commit 626ece7

Please sign in to comment.