Commit d90e1713 authored by Thong Kuah's avatar Thong Kuah

Restore sidekiq middleware to original after specs

This ensures that other specs depending on original middleware does not
fail. Closes https://gitlab.com/gitlab-org/gitlab/issues/103371
parent f51fece8
......@@ -25,6 +25,14 @@ describe Gitlab::SidekiqMiddleware do
# 1) not failing
# 2) yielding exactly once
describe '.server_configurator' do
around do |example|
original = Sidekiq::Testing.server_middleware.dup
example.run
Sidekiq::Testing.instance_variable_set :@server_chain, original
end
let(:middleware_expected_args) { [a_kind_of(worker_class), hash_including({ 'args' => job_args }), anything] }
let(:all_sidekiq_middlewares) do
[
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment