diff options
Diffstat (limited to 'spec/factories/ci/runner_machines.rb')
-rw-r--r-- | spec/factories/ci/runner_machines.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/factories/ci/runner_machines.rb b/spec/factories/ci/runner_machines.rb index 09bf5d0844e..9d601caa634 100644 --- a/spec/factories/ci/runner_machines.rb +++ b/spec/factories/ci/runner_machines.rb @@ -3,6 +3,11 @@ FactoryBot.define do factory :ci_runner_machine, class: 'Ci::RunnerMachine' do runner factory: :ci_runner - machine_xid { "r_#{SecureRandom.hex.slice(0, 10)}" } + system_xid { "r_#{SecureRandom.hex.slice(0, 10)}" } + + trait :stale do + created_at { 1.year.ago } + contacted_at { Ci::RunnerMachine::STALE_TIMEOUT.ago } + end end end |