Commit 1c62cdbb authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch '326799-api-dora-metrics-spes-broken' into 'master'

Fix broken API::Dora::Metrics speсs

See merge request gitlab-org/gitlab!58481
parents f4810472 b76bd0d8
......@@ -2,7 +2,7 @@
module Dora
class AggregateMetricsService < ::BaseContainerService
MAX_RANGE = 3.months / 1.day
MAX_RANGE = 92 # the maximum number of days in 3 months
DEFAULT_ENVIRONMENT_TIER = 'production'
DEFAULT_INTERVAL = Dora::DailyMetrics::INTERVAL_DAILY
......
......@@ -15,7 +15,7 @@ RSpec.describe API::Dora::Metrics do
let(:user) { maintainer }
around do |example|
freeze_time do
travel_to '2021-01-03'.to_time do
example.run
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment