Commit 8a7654a5 authored by Shinya Maeda's avatar Shinya Maeda

Fix statis analysys

parent bc43588c
......@@ -79,8 +79,8 @@ module Ci
def use_database!
in_lock do
return if db?
return unless size > 0
break if db?
break unless size > 0
self.update!(raw_data: data, data_store: :db)
redis_delete_data
......
......@@ -535,7 +535,7 @@ describe Gitlab::Ci::Trace, :clean_gitlab_redis_cache do
context 'when job does not have trace artifact' do
context 'when trace file stored in default path' do
let(:build) { create(:ci_build, :success, :trace_live) }
let(:src_path) { trace.read { |s| return s.path } }
let(:src_path) { trace.read { |s| s.path } }
let(:src_checksum) { Digest::SHA256.file(src_path).hexdigest }
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