Commit c0825011 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Simplify trace checksum class and fix typo in specs

parent 3a8ad2ed
......@@ -72,9 +72,7 @@ module Gitlab
def trace_size
strong_memoize(:trace_size) do
trace_chunks.reduce(0) do |total, chunk|
total + chunk_size(chunk)
end
trace_chunks.sum { |chunk| chunk_size(chunk) }
end
end
......
......@@ -211,7 +211,7 @@ RSpec.describe Ci::UpdateBuildStateService do
end
end
context 'when trace checksum is invalid but the log is seems fine' do
context 'when trace checksum is invalid but the log seems fine' do
let(:params) do
{ output: { checksum: 'crc32:12345678', bytesize: 4 }, state: 'success' }
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