diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-06-06 11:07:29 +0200 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-06-06 11:07:29 +0200 |
commit | 336cef434372244b9f17bd1fd222e54f8b70979e (patch) | |
tree | 5ba903eaa63357a487816db5a5fa6cc77151b123 /spec | |
parent | 1b6ab2dffce29df53f57cd857720b9f77ab4a7ca (diff) | |
download | gitlab-ce-336cef434372244b9f17bd1fd222e54f8b70979e.tar.gz |
Fix transient error in deployment test
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/prometheus/queries/additional_metrics_deployment_query_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/lib/gitlab/prometheus/queries/additional_metrics_deployment_query_spec.rb b/spec/lib/gitlab/prometheus/queries/additional_metrics_deployment_query_spec.rb index 836f2be629f..4909aec5a4d 100644 --- a/spec/lib/gitlab/prometheus/queries/additional_metrics_deployment_query_spec.rb +++ b/spec/lib/gitlab/prometheus/queries/additional_metrics_deployment_query_spec.rb @@ -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, |