Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/user_project_access_changed_service_spec.rb')
-rw-r--r--spec/services/user_project_access_changed_service_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/user_project_access_changed_service_spec.rb b/spec/services/user_project_access_changed_service_spec.rb
index a50bd3ee2f1..8236d892072 100644
--- a/spec/services/user_project_access_changed_service_spec.rb
+++ b/spec/services/user_project_access_changed_service_spec.rb
@@ -77,7 +77,7 @@ RSpec.describe UserProjectAccessChangedService, feature_category: :system_access
it 'avoids N+1 cached queries', :use_sql_query_cache, :request_store do
# Run this once to establish a baseline
- control_count = ActiveRecord::QueryRecorder.new(skip_cached: false) do
+ control = ActiveRecord::QueryRecorder.new(skip_cached: false) do
service.execute
end
@@ -87,7 +87,7 @@ RSpec.describe UserProjectAccessChangedService, feature_category: :system_access
.with([[1], [2], [3], [4], [5]])
.and_return(10)
- expect { service.execute }.not_to exceed_all_query_limit(control_count.count)
+ expect { service.execute }.not_to exceed_all_query_limit(control)
end
end
end