Commit d354d185 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Remove tests for pending_duration

parent 6e1a06d8
...@@ -128,7 +128,7 @@ describe Ci::Pipeline, models: true do ...@@ -128,7 +128,7 @@ describe Ci::Pipeline, models: true do
let(:build_b) { create_build('build2', current, 20) } let(:build_b) { create_build('build2', current, 20) }
let(:build_c) { create_build('build3', current + 50, 10) } let(:build_c) { create_build('build3', current + 50, 10) }
describe '#duration and #pending_duration' do describe '#duration' do
before do before do
pipeline.update(created_at: current) pipeline.update(created_at: current)
...@@ -156,7 +156,6 @@ describe Ci::Pipeline, models: true do ...@@ -156,7 +156,6 @@ describe Ci::Pipeline, models: true do
pipeline.reload pipeline.reload
expect(pipeline.duration).to eq(40) expect(pipeline.duration).to eq(40)
expect(pipeline.pending_duration).to eq(45)
end end
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