Chnaged Chunk size to 128kb. Add spec.

This commit is contained in:
Shinya Maeda 2018-04-05 20:39:35 +09:00
parent 9e146233d4
commit 242b4afa8f
2 changed files with 7 additions and 1 deletions

View file

@ -8,7 +8,7 @@ module Ci
default_value_for :data_store, :redis
CHUNK_SIZE = 32.kilobytes
CHUNK_SIZE = 128.kilobytes
CHUNK_REDIS_TTL = 1.month
enum data_store: {

View file

@ -9,6 +9,12 @@ describe Ci::JobTraceChunk, :clean_gitlab_redis_shared_state do
described_class.new(job: job, chunk_index: chunk_index, data_store: data_store, raw_data: raw_data)
end
describe 'CHUNK_SIZE' do
it 'Chunk size can not be changed without special care' do
expect(described_class::CHUNK_SIZE).to eq(128.kilobytes)
end
end
describe '#data' do
subject { job_trace_chunk.data }