summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessio Caiazza <acaiazza@gitlab.com>2018-10-02 15:52:39 +0200
committerAlessio Caiazza <acaiazza@gitlab.com>2018-10-02 17:08:15 +0200
commite5e307dd75f74c5e98b039332c58170dc9c2735f (patch)
tree7eac3ce47d5e4ba1b8c9e5a29eaa72b4968d0f8d
parentc5b2c66b0fcb1f8d1f6530b359be4310427cd98d (diff)
downloadgitlab-ce-scheduled-manual-jobs.tar.gz
delay scheduled_at evaluation in factoryscheduled-manual-jobs
-rw-r--r--spec/factories/ci/builds.rb4
1 files 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