Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/ci/pipelines.rb')
-rw-r--r--spec/factories/ci/pipelines.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/factories/ci/pipelines.rb b/spec/factories/ci/pipelines.rb
index 891628a0fc2..eef5c593e0f 100644
--- a/spec/factories/ci/pipelines.rb
+++ b/spec/factories/ci/pipelines.rb
@@ -8,7 +8,7 @@ FactoryBot.define do
sha { 'b83d6e391c22777fca1ed3012fce84f633d7fed0' }
status { 'pending' }
add_attribute(:protected) { false }
- partition_id { 100 }
+ partition_id { Ci::Pipeline.current_partition_value }
project
@@ -54,7 +54,6 @@ FactoryBot.define do
end
factory :ci_pipeline do
- partition_id { 100 }
transient { ci_ref_presence { true } }
before(:create) do |pipeline, evaluator|
@@ -84,6 +83,7 @@ FactoryBot.define do
end
trait :running do
+ started_at { Time.current }
status { :running }
end