summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2017-06-06 11:07:29 +0200
committerPawel Chojnacki <pawel@chojnacki.ws>2017-06-06 11:07:29 +0200
commit336cef434372244b9f17bd1fd222e54f8b70979e (patch)
tree5ba903eaa63357a487816db5a5fa6cc77151b123 /spec
parent1b6ab2dffce29df53f57cd857720b9f77ab4a7ca (diff)
downloadgitlab-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.rb4
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,