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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-16 15:09:30 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-16 15:09:30 +0300
commite3748b81ca29b24197276767e245158d8f84fda3 (patch)
tree02b2dbe099f8e09e9e85dc71cce1bd8e858be7ac /db/fixtures/development
parent4e1af5260dc9187ca0637fcfcf56b450f6443192 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/fixtures/development')
-rw-r--r--db/fixtures/development/17_cycle_analytics.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/db/fixtures/development/17_cycle_analytics.rb b/db/fixtures/development/17_cycle_analytics.rb
index 5c71e1ecdac..4f6bfc5c82a 100644
--- a/db/fixtures/development/17_cycle_analytics.rb
+++ b/db/fixtures/development/17_cycle_analytics.rb
@@ -2,6 +2,7 @@
require './spec/support/sidekiq_middleware'
require './spec/support/helpers/test_env'
+require 'active_support/testing/time_helpers'
# Usage:
#
@@ -18,6 +19,8 @@ require './spec/support/helpers/test_env'
# VSA_SEED_PROJECT_ID=10 FILTER=cycle_analytics SEED_VSA=1 bundle exec rake db:seed_fu
class Gitlab::Seeder::CycleAnalytics
+ include ActiveSupport::Testing::TimeHelpers
+
attr_reader :project, :issues, :merge_requests, :developers
FLAG = 'SEED_VSA'
@@ -133,7 +136,7 @@ class Gitlab::Seeder::CycleAnalytics
def create_issues!
@issue_count.times do
- Timecop.travel start_time + rand(5).days do
+ travel_to(start_time + rand(5).days) do
title = "#{FFaker::Product.brand}-#{suffix}"
@issues << Issue.create!(project: project, title: title, author: developers.sample)
end