summaryrefslogtreecommitdiff
path: root/spec/serializers/environment_serializer_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-01-20 12:16:19 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-01-20 12:16:19 +0000
commit60e09a0cef4e104aa41e20ab7a40499f3343e90f (patch)
tree1fa8c9904d582abb9f329555eae06f5fd0a4d6fb /spec/serializers/environment_serializer_spec.rb
parent6b5937e93e758a429a02eb0644fd23ad164a4ad9 (diff)
downloadgitlab-ce-60e09a0cef4e104aa41e20ab7a40499f3343e90f.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/serializers/environment_serializer_spec.rb')
-rw-r--r--spec/serializers/environment_serializer_spec.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/spec/serializers/environment_serializer_spec.rb b/spec/serializers/environment_serializer_spec.rb
index 80b6f00d8c9..658062c9461 100644
--- a/spec/serializers/environment_serializer_spec.rb
+++ b/spec/serializers/environment_serializer_spec.rb
@@ -204,21 +204,6 @@ RSpec.describe EnvironmentSerializer do
json
end
-
- # Including for test coverage pipeline failure, remove along with feature flag.
- context 'when custom preload feature is disabled' do
- before do
- Feature.disable(:custom_preloader_for_deployments)
- end
-
- it 'avoids N+1 database queries' do
- control_count = ActiveRecord::QueryRecorder.new { json }.count
-
- create_environment_with_associations(project)
-
- expect { json }.not_to exceed_query_limit(control_count)
- end
- end
end
def create_environment_with_associations(project)