mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Test suite cleanup
This commit is contained in:
parent
18a458bf1f
commit
5ec8ac08b0
2 changed files with 1 additions and 5 deletions
|
@ -42,10 +42,6 @@ class TestMiddleware < MiniTest::Unit::TestCase
|
|||
end
|
||||
|
||||
it 'executes middleware in the proper order' do
|
||||
Sidekiq::Middleware::Server::UniqueJobs.class_eval do
|
||||
def call(*args); yield; end
|
||||
end
|
||||
|
||||
recorder = []
|
||||
msg = { 'class' => CustomWorker.to_s, 'args' => [recorder] }
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ class TestProcessor < MiniTest::Unit::TestCase
|
|||
$errors = []
|
||||
@boss = MiniTest::Mock.new
|
||||
Celluloid.logger = nil
|
||||
Sidekiq.redis = REDIS
|
||||
end
|
||||
|
||||
class MockWorker
|
||||
|
@ -49,4 +50,3 @@ class FakeAirbrake
|
|||
end
|
||||
end
|
||||
Airbrake = FakeAirbrake
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue