BigW Consortium Gitlab

sidekiq.rb 334 Bytes
Newer Older
1
require 'sidekiq/testing/inline'
2 3 4 5

Sidekiq::Testing.server_middleware do |chain|
  chain.add Gitlab::SidekiqStatus::ServerMiddleware
end
6 7 8 9 10

RSpec.configure do |config|
  config.after(:each, :sidekiq) do
    Sidekiq::Worker.clear_all
  end
11 12 13 14

  config.after(:each, :sidekiq, :redis) do
    Sidekiq.redis { |redis| redis.flushdb }
  end
15
end