diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-01-31 15:56:04 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-02-06 09:50:08 +0300 |
commit | adfe2cb35bfad1dfe2a7fdbd0cf20303fa45b0e8 (patch) | |
tree | ea4a7f3d9bc9d7b891658ab735541e24f52128b2 /spec/factories/ci/builds.rb | |
parent | c9ed3b2d4d208b7452fc2e057f11d28356c08887 (diff) |
Fix retry_build_service_spec.rb with trace_artifact trait
Diffstat (limited to 'spec/factories/ci/builds.rb')
-rw-r--r-- | spec/factories/ci/builds.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb index 6f66468570f..29136043f6c 100644 --- a/spec/factories/ci/builds.rb +++ b/spec/factories/ci/builds.rb @@ -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( |