Commit ae76f0c3 authored by Shinya Maeda's avatar Shinya Maeda

Merge branch 'live-trace-v2' into live-trace-v2-efficient-destroy-all

parents 40fa5ae7 7d626c41
......@@ -120,7 +120,7 @@ module Ci
def schedule_to_db
return if db?
BuildTraceChunkFlushToDBWorker.perform_async(id)
BuildTraceChunkFlushToDbWorker.perform_async(id)
end
def fullfilled?
......
class BuildTraceChunkFlushToDBWorker
class BuildTraceChunkFlushToDbWorker
include ApplicationWorker
include PipelineQueue
......
......@@ -75,7 +75,7 @@ describe Ci::BuildTraceChunk, :clean_gitlab_redis_shared_state do
let(:value) { 'a' * described_class::CHUNK_SIZE }
it 'schedules stashing data' do
expect(BuildTraceChunkFlushToDBWorker).to receive(:perform_async).once
expect(BuildTraceChunkFlushToDbWorker).to receive(:perform_async).once
subject
end
......@@ -112,7 +112,7 @@ describe Ci::BuildTraceChunk, :clean_gitlab_redis_shared_state do
context 'when fullfilled chunk size' do
it 'does not schedule stashing data' do
expect(BuildTraceChunkFlushToDBWorker).not_to receive(:perform_async)
expect(BuildTraceChunkFlushToDbWorker).not_to receive(:perform_async)
subject
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