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/support/shared_examples/serializers/environment_serializer_shared_examples.rb')
-rw-r--r--spec/support/shared_examples/serializers/environment_serializer_shared_examples.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/spec/support/shared_examples/serializers/environment_serializer_shared_examples.rb b/spec/support/shared_examples/serializers/environment_serializer_shared_examples.rb
index e1baa594f3c..6d59943d91c 100644
--- a/spec/support/shared_examples/serializers/environment_serializer_shared_examples.rb
+++ b/spec/support/shared_examples/serializers/environment_serializer_shared_examples.rb
@@ -8,9 +8,8 @@ RSpec.shared_examples 'avoid N+1 on environments serialization' do
create_environment_with_associations(project)
create_environment_with_associations(project)
- # Fix N+1 queries introduced by multi stop_actions for environment.
- # Tracked in https://gitlab.com/gitlab-org/gitlab/-/issues/358780
- relax_count = 14
+ # See issue: https://gitlab.com/gitlab-org/gitlab/-/issues/363317
+ relax_count = 1
expect { serialize(grouping: true) }.not_to exceed_query_limit(control.count + relax_count)
end
@@ -23,9 +22,8 @@ RSpec.shared_examples 'avoid N+1 on environments serialization' do
create_environment_with_associations(project)
create_environment_with_associations(project)
- # Fix N+1 queries introduced by multi stop_actions for environment.
- # Tracked in https://gitlab.com/gitlab-org/gitlab/-/issues/358780
- relax_count = 14
+ # See issue: https://gitlab.com/gitlab-org/gitlab/-/issues/363317
+ relax_count = 1
expect { serialize(grouping: false) }.not_to exceed_query_limit(control.count + relax_count)
end