Commit 7d626c41 authored by Shinya Maeda's avatar Shinya Maeda

Fix BuildTraceChunkFlushToDbWorker name

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