Commit c77b1cb0 authored by Rydkin Maxim's avatar Rydkin Maxim

add `does not cancel HEAD pipeline` spec

parent c81ef304
......@@ -47,7 +47,13 @@ describe Ci::CreatePipelineService, services: true do
project.update(auto_cancel_pending_pipelines: 'enabled')
end
it_behaves_like 'a pending pipeline'
it 'does not cancel HEAD pipeline' do
pipeline
previous_pipeline = pipeline_on_previous_commit
expect(pipeline.reload)
.to have_attributes(status: 'pending', auto_canceled_by: nil)
end
it 'auto cancel pending non-HEAD pipelines' do
pending_pipeline = pipeline_on_previous_commit
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment