Commit 7dcc2446 authored by Lin Jen-Shin's avatar Lin Jen-Shin

It's renamed to periods

parent 4789adc5
...@@ -114,10 +114,10 @@ describe Gitlab::Ci::PipelineDuration do ...@@ -114,10 +114,10 @@ describe Gitlab::Ci::PipelineDuration do
end end
def create_calculator(data) def create_calculator(data)
segments = data.shuffle.map do |(first, last)| periods = data.shuffle.map do |(first, last)|
Gitlab::Ci::PipelineDuration::Period.new(first, last) Gitlab::Ci::PipelineDuration::Period.new(first, last)
end end
Gitlab::Ci::PipelineDuration.new(segments) Gitlab::Ci::PipelineDuration.new(periods)
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