Fix BuildTraceChunkFlushToDbWorker name

This commit is contained in:
Shinya Maeda 2018-05-02 21:22:08 +09:00
parent 950df8babf
commit 7d626c41cc
3 changed files with 4 additions and 4 deletions

View file

@ -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?

View file

@ -1,4 +1,4 @@
class BuildTraceChunkFlushToDBWorker class BuildTraceChunkFlushToDbWorker
include ApplicationWorker include ApplicationWorker
include PipelineQueue include PipelineQueue

View file

@ -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
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