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:
authorShinya Maeda <shinya@gitlab.com>2018-09-26 08:37:11 +0300
committerAlessio Caiazza <acaiazza@gitlab.com>2018-10-02 18:08:11 +0300
commit173300370a77f84b06755498b488cb68547eb1b3 (patch)
treefe010ceab37e8f25e48bc3444472fe4b325c890a
parentc514636a83987152b2a95e442f49b3ee61dcbeb8 (diff)
Fix retry_build_service_spec
-rw-r--r--spec/services/ci/retry_build_service_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/services/ci/retry_build_service_spec.rb b/spec/services/ci/retry_build_service_spec.rb
index 951c0b16a68..a945a769d4e 100644
--- a/spec/services/ci/retry_build_service_spec.rb
+++ b/spec/services/ci/retry_build_service_spec.rb
@@ -26,7 +26,8 @@ describe Ci::RetryBuildService do
erased_at auto_canceled_by job_artifacts job_artifacts_archive
job_artifacts_metadata job_artifacts_trace job_artifacts_junit
job_artifacts_sast job_artifacts_dependency_scanning
- job_artifacts_container_scanning job_artifacts_dast].freeze
+ job_artifacts_container_scanning job_artifacts_dast
+ scheduled_at].freeze
IGNORE_ACCESSORS =
%i[type lock_version target_url base_tags trace_sections
@@ -43,7 +44,8 @@ describe Ci::RetryBuildService do
create(:ci_build, :failed, :expired, :erased, :queued, :coverage, :tags,
:allowed_to_fail, :on_tag, :triggered, :teardown_environment,
description: 'my-job', stage: 'test', stage_id: stage.id,
- pipeline: pipeline, auto_canceled_by: another_pipeline)
+ pipeline: pipeline, auto_canceled_by: another_pipeline,
+ scheduled_at: 10.seconds.since)
end
before do