Commit 676f4879 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix failures

parent 6b6fb11a
......@@ -475,11 +475,7 @@ module Ci
private
def update_artifacts_size
self.artifacts_size = if artifacts_file.exists?
artifacts_file.size
else
nil
end
self.artifacts_size = legacy_artifacts_file&.size
end
def erase_trace!
......
......@@ -14,7 +14,7 @@ FactoryGirl.define do
after(:build) do |artifact, _|
artifact.file = fixture_file_upload(
Rails.root.join('spec/fixtures/ci_build_artifacts.zip'), 'application/zip')
Rails.root.join('spec/fixtures/ci_build_artifacts.zip'), 'application/zip')
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