Commit b7a1715f authored by Dmitry Gruzd's avatar Dmitry Gruzd

Merge branch '330124_clear_redis_shared_state_search_spec' into 'master'

Add clean_gitlab_redis_shared_state to search_spec.rb

See merge request gitlab-org/gitlab!63201
parents 08565f46 02eaf477
......@@ -355,7 +355,7 @@ RSpec.describe API::Search, factory_default: :keep do
it_behaves_like 'elasticsearch disabled'
end
context 'when elasticsearch is enabled', :elastic do
context 'when elasticsearch is enabled', :elastic, :clean_gitlab_redis_shared_state do
before do
stub_ee_application_setting(elasticsearch_search: true, elasticsearch_indexing: true)
end
......@@ -393,7 +393,7 @@ RSpec.describe API::Search, factory_default: :keep do
it_behaves_like 'elasticsearch disabled'
end
context 'when elasticsearch is enabled', :elastic do
context 'when elasticsearch is enabled', :elastic, :clean_gitlab_redis_shared_state do
before do
stub_ee_application_setting(elasticsearch_search: true, elasticsearch_indexing: true)
end
......@@ -496,7 +496,7 @@ RSpec.describe API::Search, factory_default: :keep do
it_behaves_like 'search enabled'
end
context 'when elasticsearch is enabled', :elastic do
context 'when elasticsearch is enabled', :elastic, :clean_gitlab_redis_shared_state do
before do
stub_ee_application_setting(elasticsearch_search: true, elasticsearch_indexing: true)
end
......
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