diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-09-02 14:15:42 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-09-02 14:15:42 +0300 |
commit | 39c090fecbdce0031d789a2da5826d25a59c73a4 (patch) | |
tree | 7541d66fba42591488e8c9caa7a1a1040a458de9 /spec/lib/gitlab/ci | |
parent | d2cfcb3ec1327cd9dd901dcbe8c927e3c43cfb38 (diff) |
Calculate real queueing time to exclude gaps from:
retries and probably also manual actions!
Feedback:
* https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6084#note_14735478
* https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6084#note_14737804
Diffstat (limited to 'spec/lib/gitlab/ci')
-rw-r--r-- | spec/lib/gitlab/ci/pipeline_duration_spec.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/spec/lib/gitlab/ci/pipeline_duration_spec.rb b/spec/lib/gitlab/ci/pipeline_duration_spec.rb index acb690581d6..a160c0a6e39 100644 --- a/spec/lib/gitlab/ci/pipeline_duration_spec.rb +++ b/spec/lib/gitlab/ci/pipeline_duration_spec.rb @@ -6,7 +6,6 @@ describe Gitlab::Ci::PipelineDuration do shared_examples 'calculating duration' do it do expect(calculator.duration).to eq(duration) - expect(calculator.pending_duration).to eq(pending_duration) end end @@ -19,7 +18,6 @@ describe Gitlab::Ci::PipelineDuration do end let(:duration) { 4 } - let(:pending_duration) { 2 } it_behaves_like 'calculating duration' end @@ -34,7 +32,6 @@ describe Gitlab::Ci::PipelineDuration do end let(:duration) { 4 } - let(:pending_duration) { 0 } it_behaves_like 'calculating duration' end @@ -48,7 +45,6 @@ describe Gitlab::Ci::PipelineDuration do end let(:duration) { 8 } - let(:pending_duration) { 1 } it_behaves_like 'calculating duration' end @@ -62,7 +58,6 @@ describe Gitlab::Ci::PipelineDuration do end let(:duration) { 4 } - let(:pending_duration) { 3 } it_behaves_like 'calculating duration' end @@ -80,7 +75,6 @@ describe Gitlab::Ci::PipelineDuration do end let(:duration) { 7 } - let(:pending_duration) { 2 } it_behaves_like 'calculating duration' end @@ -95,7 +89,6 @@ describe Gitlab::Ci::PipelineDuration do end let(:duration) { 6 } - let(:pending_duration) { 1 } it_behaves_like 'calculating duration' end @@ -108,7 +101,6 @@ describe Gitlab::Ci::PipelineDuration do end let(:duration) { 4 } - let(:pending_duration) { 2 } it_behaves_like 'calculating duration' end |