diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2015-12-31 17:47:07 +0100 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2015-12-31 17:47:07 +0100 |
commit | 55ed6e1c96e4072af81ed51c4377f2c015f237d5 (patch) | |
tree | 454cf71193147414b1a36319187601c13e9a7cf0 /spec | |
parent | a6c60127e3e2966b2f29fa6e6e79503b130c2b02 (diff) | |
download | gitlab-ce-55ed6e1c96e4072af81ed51c4377f2c015f237d5.tar.gz |
Cache InfluxDB settings after the first use
This ensures we don't need to load anything from either PostgreSQL or
the Rails cache whenever creating new InfluxDB connections.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/metrics_spec.rb | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/spec/lib/gitlab/metrics_spec.rb b/spec/lib/gitlab/metrics_spec.rb index 6c0682cac4d..c2924708f44 100644 --- a/spec/lib/gitlab/metrics_spec.rb +++ b/spec/lib/gitlab/metrics_spec.rb @@ -1,15 +1,9 @@ require 'spec_helper' describe Gitlab::Metrics do - describe '.pool_size' do - it 'returns a Fixnum' do - expect(described_class.pool_size).to be_an_instance_of(Fixnum) - end - end - - describe '.timeout' do - it 'returns a Fixnum' do - expect(described_class.timeout).to be_an_instance_of(Fixnum) + describe '.settings' do + it 'returns a Hash' do + expect(described_class.settings).to be_an_instance_of(Hash) end end |