Commit adfe2cb3 authored by Shinya Maeda's avatar Shinya Maeda

Fix retry_build_service_spec.rb with trace_artifact trait

parent c9ed3b2d
......@@ -141,6 +141,12 @@ FactoryBot.define do
end
end
trait :trace_artifact do
after(:create) do |build, evaluator|
create(:ci_job_artifact, :trace, job: build)
end
end
trait :unicode_trace do
after(:create) do |build, evaluator|
trace = File.binread(
......
......@@ -37,7 +37,7 @@ describe Ci::RetryBuildService do
let(:build) do
create(:ci_build, :failed, :artifacts, :expired, :erased,
:queued, :coverage, :tags, :allowed_to_fail, :on_tag,
:triggered, :trace, :teardown_environment,
:triggered, :trace_artifact, :teardown_environment,
description: 'my-job', stage: 'test', pipeline: pipeline,
auto_canceled_by: create(:ci_empty_pipeline, project: project)) do |build|
##
......
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