mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Fix broken tests
This commit is contained in:
parent
ac69c7ee5e
commit
626ece7ad8
1 changed files with 1 additions and 7 deletions
|
@ -105,13 +105,6 @@ class TestClient < Sidekiq::Test
|
|||
@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)
|
||||
|
@ -266,6 +259,7 @@ class TestClient < Sidekiq::Test
|
|||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue