spec/sidekiq_helper.rb in sidekiq-debounce-1.0.2 vs spec/sidekiq_helper.rb in sidekiq-debounce-1.1.0
- old
+ new
@@ -7,7 +7,11 @@
Sidekiq.configure_server do |config|
config.redis = ConnectionPool.new(size: 1) { MockRedis.new }
end
Sidekiq.configure_client do |config|
+ config.client_middleware do |chain|
+ chain.add Sidekiq::Debounce
+ end
+
config.redis = ConnectionPool.new(size: 1) { MockRedis.new }
end