diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 15:09:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 15:09:24 +0300 |
commit | 24f32a55ee1f8dc2dc36e04898886459b1393c2f (patch) | |
tree | 7a4e5329a5c718875f730aea5c3c1142982404ab /spec/workers/projects | |
parent | b509bf0a57ade2d846459e44c208495e0e317c81 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers/projects')
-rw-r--r-- | spec/workers/projects/refresh_build_artifacts_size_statistics_worker_spec.rb | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/spec/workers/projects/refresh_build_artifacts_size_statistics_worker_spec.rb b/spec/workers/projects/refresh_build_artifacts_size_statistics_worker_spec.rb index 4a6a525a5a7..c7e45e7e4d7 100644 --- a/spec/workers/projects/refresh_build_artifacts_size_statistics_worker_spec.rb +++ b/spec/workers/projects/refresh_build_artifacts_size_statistics_worker_spec.rb @@ -62,32 +62,11 @@ RSpec.describe Projects::RefreshBuildArtifactsSizeStatisticsWorker do describe '#max_running_jobs' do subject { worker.max_running_jobs } - context 'when all projects_build_artifacts_size_refresh flags are enabled' do - it { is_expected.to eq(described_class::MAX_RUNNING_HIGH) } - end - - context 'when projects_build_artifacts_size_refresh_high flags is disabled' do - before do - stub_feature_flags(projects_build_artifacts_size_refresh_high: false) - end - - it { is_expected.to eq(described_class::MAX_RUNNING_MEDIUM) } - end - - context 'when projects_build_artifacts_size_refresh_high and projects_build_artifacts_size_refresh_medium flags are disabled' do - before do - stub_feature_flags(projects_build_artifacts_size_refresh_high: false) - stub_feature_flags(projects_build_artifacts_size_refresh_medium: false) - end - - it { is_expected.to eq(described_class::MAX_RUNNING_LOW) } - end + it { is_expected.to eq(10) } - context 'when all projects_build_artifacts_size_refresh flags are disabled' do + context 'when projects_build_artifacts_size_refresh flag is disabled' do before do - stub_feature_flags(projects_build_artifacts_size_refresh_low: false) - stub_feature_flags(projects_build_artifacts_size_refresh_medium: false) - stub_feature_flags(projects_build_artifacts_size_refresh_high: false) + stub_feature_flags(projects_build_artifacts_size_refresh: false) end it { is_expected.to eq(0) } |