Fix transient error in deployment test
This commit is contained in:
parent
1b6ab2dffc
commit
336cef4343
1 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,10 @@ describe Gitlab::Prometheus::Queries::AdditionalMetricsDeploymentQuery, lib: tru
|
|||
|
||||
subject(:query_result) { described_class.new(client).query(deployment.id) }
|
||||
|
||||
around do |example|
|
||||
Timecop.freeze(Time.local(2008, 9, 1, 12, 0, 0)) { example.run }
|
||||
end
|
||||
|
||||
include_examples 'additional metrics query' do
|
||||
it 'queries using specific time' do
|
||||
expect(client).to receive(:query_range).with(anything,
|
||||
|
|
Loading…
Reference in a new issue