diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-19 12:08:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-19 12:08:42 +0300 |
commit | b76ae638462ab0f673e5915986070518dd3f9ad3 (patch) | |
tree | bdab0533383b52873be0ec0eb4d3c66598ff8b91 /spec/services/ci/append_build_trace_service_spec.rb | |
parent | 434373eabe7b4be9593d18a585fb763f1e5f1a6f (diff) |
Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42
Diffstat (limited to 'spec/services/ci/append_build_trace_service_spec.rb')
-rw-r--r-- | spec/services/ci/append_build_trace_service_spec.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/spec/services/ci/append_build_trace_service_spec.rb b/spec/services/ci/append_build_trace_service_spec.rb index b251f00158f..487dbacbe90 100644 --- a/spec/services/ci/append_build_trace_service_spec.rb +++ b/spec/services/ci/append_build_trace_service_spec.rb @@ -75,25 +75,5 @@ RSpec.describe Ci::AppendBuildTraceService do expect(build.reload).to be_failed expect(build.failure_reason).to eq 'trace_size_exceeded' end - - context 'when the feature flag is disabled' do - before do - stub_feature_flags(ci_jobs_trace_size_limit: false) - end - - it 'appends trace chunks' do - stream_size = 1.25.megabytes - body_data = 'x' * stream_size - content_range = "0-#{stream_size}" - - result = described_class - .new(build, content_range: content_range) - .execute(body_data) - - expect(result.status).to eq 202 - expect(result.stream_size).to eq stream_size - expect(build.trace_chunks.count).to eq 10 - end - end end end |