diff options
Diffstat (limited to 'spec/workers/ci')
-rw-r--r-- | spec/workers/ci/initial_pipeline_process_worker_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/workers/ci/initial_pipeline_process_worker_spec.rb b/spec/workers/ci/initial_pipeline_process_worker_spec.rb index 5db9287fe96..5fb8671fd5c 100644 --- a/spec/workers/ci/initial_pipeline_process_worker_spec.rb +++ b/spec/workers/ci/initial_pipeline_process_worker_spec.rb @@ -4,7 +4,9 @@ require 'spec_helper' RSpec.describe Ci::InitialPipelineProcessWorker do describe '#perform' do - let_it_be(:pipeline) { create(:ci_pipeline, :with_job, status: :created) } + let_it_be_with_reload(:pipeline) do + create(:ci_pipeline, :with_job, status: :created) + end include_examples 'an idempotent worker' do let(:job_args) { pipeline.id } |