From e5e307dd75f74c5e98b039332c58170dc9c2735f Mon Sep 17 00:00:00 2001 From: Alessio Caiazza Date: Tue, 2 Oct 2018 15:52:39 +0200 Subject: delay scheduled_at evaluation in factory --- spec/factories/ci/builds.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb index 73fa16fe6bf..7a4b1dfafac 100644 --- a/spec/factories/ci/builds.rb +++ b/spec/factories/ci/builds.rb @@ -73,13 +73,13 @@ FactoryBot.define do trait :scheduled do schedulable status 'scheduled' - scheduled_at 1.minute.since + scheduled_at { 1.minute.since } end trait :expired_scheduled do schedulable status 'scheduled' - scheduled_at 1.minute.ago + scheduled_at { 1.minute.ago } end trait :manual do -- cgit v1.2.1