diff options
author | James Lopez <james@jameslopez.es> | 2016-11-18 12:50:47 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-11-18 12:50:47 +0300 |
commit | c76ef847817ac6346b2f367be63f482ee2df382a (patch) | |
tree | d189219bf309b0af46e12e703d4e2a5390ffaf30 | |
parent | cd222357ade5f47f8d52f22dea66965c580a5843 (diff) |
run pipeline worker in cycle analytics dev setup
-rw-r--r-- | db/fixtures/development/17_cycle_analytics.rb | 2 | ||||
-rw-r--r-- | spec/lib/gitlab/cycle_analytics/production_event_spec.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/db/fixtures/development/17_cycle_analytics.rb b/db/fixtures/development/17_cycle_analytics.rb index e882a492757..916ee8dbac8 100644 --- a/db/fixtures/development/17_cycle_analytics.rb +++ b/db/fixtures/development/17_cycle_analytics.rb @@ -203,6 +203,8 @@ class Gitlab::Seeder::CycleAnalytics pipeline.run! Timecop.travel rand(1..6).hours.from_now pipeline.succeed! + + PipelineMetricsWorker.new.perform(pipeline.id) end end diff --git a/spec/lib/gitlab/cycle_analytics/production_event_spec.rb b/spec/lib/gitlab/cycle_analytics/production_event_spec.rb index 5d12365c430..ac17e3b4287 100644 --- a/spec/lib/gitlab/cycle_analytics/production_event_spec.rb +++ b/spec/lib/gitlab/cycle_analytics/production_event_spec.rb @@ -7,4 +7,4 @@ describe Gitlab::CycleAnalytics::ProductionEvent do expect(event.order).to eq(event.start_time_attrs) end end -end
\ No newline at end of file +end |