Commit a9c5b6dd authored by Shinya Maeda's avatar Shinya Maeda

Fix stub_remote_trace_ok/ng to 206/500

parent 6a939f64
......@@ -19,7 +19,7 @@ describe Projects::JobsController do
context 'when there are no network issues' do
before do
stub_remote_trace_ok
stub_remote_trace_206
get_trace
end
......@@ -34,7 +34,7 @@ describe Projects::JobsController do
context 'when there is a network issue' do
before do
stub_remote_trace_ng
stub_remote_trace_500
end
it 'returns a trace' do
......
......@@ -457,7 +457,7 @@ describe API::Jobs do
let!(:job) { create(:ci_build, :trace_artifact, pipeline: pipeline) }
before do
stub_remote_trace_ok
stub_remote_trace_206
allow_any_instance_of(JobArtifactUploader).to receive(:file_storage?) { false }
allow_any_instance_of(JobArtifactUploader).to receive(:url) { remote_trace_url }
allow_any_instance_of(JobArtifactUploader).to receive(:size) { remote_trace_size }
......
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