Rename SwapTraceChunkWorker to BuildTraceSwapChunkWorker

This commit is contained in:
Shinya Maeda 2018-04-24 14:16:42 +09:00
parent 8a7654a52b
commit ac6eb51b80
4 changed files with 5 additions and 5 deletions

View File

@ -92,7 +92,7 @@ module Ci
def schedule_to_db
return if db?
SwapTraceChunkWorker.perform_async(id)
BuildTraceSwapChunkWorker.perform_async(id)
end
def fullfilled?

View File

@ -65,7 +65,7 @@
- pipeline_processing:pipeline_update
- pipeline_processing:stage_update
- pipeline_processing:update_head_pipeline_for_merge_request
- pipeline_processing:swap_trace_chunk
- pipeline_processing:build_trace_swap_chunk
- repository_check:repository_check_clear
- repository_check:repository_check_single_repository

View File

@ -1,4 +1,4 @@
class SwapTraceChunkWorker
class BuildTraceSwapChunkWorker
include ApplicationWorker
include PipelineQueue

View File

@ -71,7 +71,7 @@ describe Ci::JobTraceChunk, :clean_gitlab_redis_shared_state do
let(:value) { 'a' * described_class::CHUNK_SIZE }
it 'schedules stashing data' do
expect(SwapTraceChunkWorker).to receive(:perform_async).once
expect(BuildTraceSwapChunkWorker).to receive(:perform_async).once
subject
end
@ -108,7 +108,7 @@ describe Ci::JobTraceChunk, :clean_gitlab_redis_shared_state do
context 'when fullfilled chunk size' do
it 'does not schedule stashing data' do
expect(SwapTraceChunkWorker).not_to receive(:perform_async)
expect(BuildTraceSwapChunkWorker).not_to receive(:perform_async)
subject
end