From a7b3560714b4d9cc4ab32dffcd1f74a284b93580 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 18 Feb 2022 09:45:46 +0000 Subject: Add latest changes from gitlab-org/gitlab@14-8-stable-ee --- spec/factories/ci/runners.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spec/factories/ci/runners.rb') diff --git a/spec/factories/ci/runners.rb b/spec/factories/ci/runners.rb index 6665b7b76a0..18026412261 100644 --- a/spec/factories/ci/runners.rb +++ b/spec/factories/ci/runners.rb @@ -13,6 +13,7 @@ FactoryBot.define do transient do groups { [] } projects { [] } + token_expires_at { nil } end after(:build) do |runner, evaluator| @@ -25,6 +26,10 @@ FactoryBot.define do end end + after(:create) do |runner, evaluator| + runner.update!(token_expires_at: evaluator.token_expires_at) if evaluator.token_expires_at + end + trait :online do contacted_at { Time.now } end -- cgit v1.2.1