Welcome to mirror list, hosted at ThFree Co, Russian Federation.

chunked_io_helpers.rb « chunked_io « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fec1f9515632f7f6a21c9846c3662c5429df2d54 (plain)
1
2
3
4
5
6
7
8
9
10
11
module ChunkedIOHelpers
  def sample_trace_raw
    @sample_trace_raw ||= File.read(expand_fixture_path('trace/sample_trace'))
      .force_encoding(Encoding::BINARY)
  end

  def stub_buffer_size(size)
    stub_const('Ci::BuildTraceChunk::CHUNK_SIZE', size)
    stub_const('Gitlab::Ci::Trace::ChunkedIO::CHUNK_SIZE', size)
  end
end