diff options
Diffstat (limited to 'spec/requests/api/search_spec.rb')
-rw-r--r-- | spec/requests/api/search_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/search_spec.rb b/spec/requests/api/search_spec.rb index 6a57cf52466..4733fdafbfb 100644 --- a/spec/requests/api/search_spec.rb +++ b/spec/requests/api/search_spec.rb @@ -140,14 +140,14 @@ RSpec.describe API::Search, :clean_gitlab_redis_rate_limiting, feature_category: end context 'when DB timeouts occur from global searches', :aggregate_failures do - %w( + %w[ issues merge_requests milestones projects snippet_titles users - ).each do |scope| + ].each do |scope| it "returns a 408 error if search with scope: #{scope} times out" do allow(SearchService).to receive(:new).and_raise ActiveRecord::QueryCanceled get api(endpoint, user), params: { scope: scope, search: 'awesome' } |