Commit 3b11df7b authored by Shinya Maeda's avatar Shinya Maeda

Fix pipeline

parent cd23850e
...@@ -1244,7 +1244,7 @@ describe Ci::Pipeline, :mailer do ...@@ -1244,7 +1244,7 @@ describe Ci::Pipeline, :mailer do
describe '#execute_hooks' do describe '#execute_hooks' do
let!(:build_a) { create_build('a', 0) } let!(:build_a) { create_build('a', 0) }
let!(:build_b) { create_build('b', 1) } let!(:build_b) { create_build('b', 0) }
let!(:hook) do let!(:hook) do
create(:project_hook, project: project, pipeline_events: enabled) create(:project_hook, project: project, pipeline_events: enabled)
...@@ -1300,6 +1300,8 @@ describe Ci::Pipeline, :mailer do ...@@ -1300,6 +1300,8 @@ describe Ci::Pipeline, :mailer do
end end
context 'when stage one failed' do context 'when stage one failed' do
let!(:build_b) { create_build('b', 1) }
before do before do
build_a.drop build_a.drop
end end
......
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