diff options
Diffstat (limited to 'spec/services/ci/create_pipeline_service_spec.rb')
-rw-r--r-- | spec/services/ci/create_pipeline_service_spec.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/services/ci/create_pipeline_service_spec.rb b/spec/services/ci/create_pipeline_service_spec.rb index 98ec02d59c6..9cc5a245333 100644 --- a/spec/services/ci/create_pipeline_service_spec.rb +++ b/spec/services/ci/create_pipeline_service_spec.rb @@ -161,30 +161,6 @@ RSpec.describe Ci::CreatePipelineService do expect(merge_request_1.reload.head_pipeline).to eq(head_pipeline) expect(merge_request_2.reload.head_pipeline).to eq(head_pipeline) end - - # TODO: remove after ci_publish_pipeline_events FF is removed - # https://gitlab.com/gitlab-org/gitlab/-/issues/336752 - it 'does not schedule sync update for the head pipeline of the merge request' do - expect(UpdateHeadPipelineForMergeRequestWorker) - .not_to receive(:perform_async) - - execute_service(ref: 'feature', after: nil) - end - end - - context 'when feature flag ci_publish_pipeline_events is disabled' do - before do - stub_feature_flags(ci_publish_pipeline_events: false) - end - - it 'schedules update for the head pipeline of the merge request' do - expect(UpdateHeadPipelineForMergeRequestWorker) - .to receive(:perform_async).with(merge_request_1.id) - expect(UpdateHeadPipelineForMergeRequestWorker) - .to receive(:perform_async).with(merge_request_2.id) - - execute_service(ref: 'feature', after: nil) - end end end |