Commit 74c5f82f authored by Lin Jen-Shin's avatar Lin Jen-Shin

pipeline duration no longer depends on builds

parent ce641335
...@@ -124,8 +124,7 @@ describe Ci::Pipeline, models: true do ...@@ -124,8 +124,7 @@ describe Ci::Pipeline, models: true do
describe 'state machine' do describe 'state machine' do
let(:current) { Time.now.change(usec: 0) } let(:current) { Time.now.change(usec: 0) }
let(:build) { create :ci_build, name: 'build1', pipeline: pipeline, started_at: current - 60, finished_at: current } let(:build) { create :ci_build, name: 'build1', pipeline: pipeline }
let(:build2) { create :ci_build, name: 'build2', pipeline: pipeline, started_at: current - 60, finished_at: current }
describe '#duration' do describe '#duration' do
before do before do
......
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