Commit 242b4afa authored by Shinya Maeda's avatar Shinya Maeda

Chnaged Chunk size to 128kb. Add spec.

parent 9e146233
......@@ -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: {
......
......@@ -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 }
......
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