diff options
author | Francisco Javier López <fjlopez@gitlab.com> | 2019-09-09 16:46:24 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-09-09 16:46:24 +0300 |
commit | 107ebb8251463cef43b6ccf00dde4de54d66d1ac (patch) | |
tree | d6689133b1bd0129a4f5461d6d2154506caa2808 /spec/lib/gitlab/snippet_search_results_spec.rb | |
parent | cbb35ea882cdc40c09f7f6cd44bca8d72e506092 (diff) |
Lower searches count limit
Lowering the limit when performing search from 1001 to 101.
This will allow us to speed this process.
Diffstat (limited to 'spec/lib/gitlab/snippet_search_results_spec.rb')
-rw-r--r-- | spec/lib/gitlab/snippet_search_results_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/lib/gitlab/snippet_search_results_spec.rb b/spec/lib/gitlab/snippet_search_results_spec.rb index 89d290aaa81..d3353b76c15 100644 --- a/spec/lib/gitlab/snippet_search_results_spec.rb +++ b/spec/lib/gitlab/snippet_search_results_spec.rb @@ -3,6 +3,8 @@ require 'spec_helper' describe Gitlab::SnippetSearchResults do + include SearchHelpers + let!(:snippet) { create(:snippet, content: 'foo', file_name: 'foo') } let(:results) { described_class.new(Snippet.all, 'foo') } @@ -25,7 +27,7 @@ describe Gitlab::SnippetSearchResults do where(:scope, :count_method, :expected) do 'snippet_titles' | :snippet_titles_count | '1234' 'snippet_blobs' | :snippet_blobs_count | '1234' - 'projects' | :limited_projects_count | '1000+' + 'projects' | :limited_projects_count | max_limited_count 'unknown' | nil | nil end |