diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-04 15:06:55 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-04 15:06:55 +0300 |
commit | 30a8e054751fe9020a9ed526434db83af35b4718 (patch) | |
tree | 705dc26a080a7110a653f72a3200f8c718858892 /spec/workers | |
parent | f797f00ec769812339968010af178b3d51a4c460 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/process_commit_worker_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/workers/process_commit_worker_spec.rb b/spec/workers/process_commit_worker_spec.rb index c95119b0d02..02221285ad3 100644 --- a/spec/workers/process_commit_worker_spec.rb +++ b/spec/workers/process_commit_worker_spec.rb @@ -9,6 +9,11 @@ RSpec.describe ProcessCommitWorker, feature_category: :source_code_management do let(:issue) { create(:issue, project: project, author: user) } let(:commit) { project.commit } + it "is deduplicated" do + expect(described_class.get_deduplicate_strategy).to eq(:until_executed) + expect(described_class.get_deduplication_options).to include(feature_flag: :deduplicate_process_commit_worker) + end + describe '#perform' do it 'does not process the commit when the project does not exist' do expect(worker).not_to receive(:close_issues) |