summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@gitlab.com>2019-08-02 17:39:03 +0000
committerBob Van Landuyt <bob@gitlab.com>2019-08-02 17:39:03 +0000
commitdd05aed1d36160bd035d56ee84524a7ea518ea4f (patch)
tree2c13e68549a78b90950e100f1d2f74174d138a52 /spec/support
parent1bc2ac330e503005b6eec45c409f774178e3059f (diff)
parentc6acb77d8a19063f26f8dfcda85beead50fe6e96 (diff)
downloadgitlab-ce-dd05aed1d36160bd035d56ee84524a7ea518ea4f.tar.gz
Merge branch '64092-removes-update-statistics-namespace-feature-flag' into 'master'
Removes update_statistics_namespace feature flag See merge request gitlab-org/gitlab-ce!31392
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/shared_examples/models/update_project_statistics_shared_examples.rb40
1 files changed, 0 insertions, 40 deletions
diff --git a/spec/support/shared_examples/models/update_project_statistics_shared_examples.rb b/spec/support/shared_examples/models/update_project_statistics_shared_examples.rb
index aad63982e7a..e03435cafe8 100644
--- a/spec/support/shared_examples/models/update_project_statistics_shared_examples.rb
+++ b/spec/support/shared_examples/models/update_project_statistics_shared_examples.rb
@@ -32,19 +32,6 @@ shared_examples_for 'UpdateProjectStatistics' do
subject.save!
end
-
- context 'when feature flag is disabled for the namespace' do
- it 'does not schedules a namespace statistics worker' do
- namespace = subject.project.root_ancestor
-
- stub_feature_flags(update_statistics_namespace: false, namespace: namespace)
-
- expect(Namespaces::ScheduleAggregationWorker)
- .not_to receive(:perform_async)
-
- subject.save!
- end
- end
end
context 'when updating' do
@@ -87,20 +74,6 @@ shared_examples_for 'UpdateProjectStatistics' do
subject.save!
end.not_to exceed_query_limit(control_count)
end
-
- context 'when the feature flag is disabled for the namespace' do
- it 'does not schedule a namespace statistics worker' do
- namespace = subject.project.root_ancestor
-
- stub_feature_flags(update_statistics_namespace: false, namespace: namespace)
-
- expect(Namespaces::ScheduleAggregationWorker)
- .not_to receive(:perform_async)
-
- subject.write_attribute(statistic_attribute, read_attribute + delta)
- subject.save!
- end
- end
end
context 'when destroying' do
@@ -144,18 +117,5 @@ shared_examples_for 'UpdateProjectStatistics' do
project.destroy!
end
end
-
- context 'when feature flag is disabled for the namespace' do
- it 'does not schedule a namespace statistics worker' do
- namespace = subject.project.root_ancestor
-
- stub_feature_flags(update_statistics_namespace: false, namespace: namespace)
-
- expect(Namespaces::ScheduleAggregationWorker)
- .not_to receive(:perform_async)
-
- subject.destroy!
- end
- end
end
end