summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-08-03 12:16:45 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2017-08-04 15:38:49 +0200
commit3899d07f9eb5ffa2369195c800be18e297f67613 (patch)
tree5a8e252d127878f4057ec884f3407874b86645d4 /spec/lib
parent0fa94a0dddfc38635abf49a38dbadc9b9ead4d7a (diff)
downloadgitlab-ce-3899d07f9eb5ffa2369195c800be18e297f67613.tar.gz
Move hostname to Gitlab::Environment
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/git/storage/circuit_breaker_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/git/storage/circuit_breaker_spec.rb b/spec/lib/gitlab/git/storage/circuit_breaker_spec.rb
index 479e53230bc..6fab224ad0d 100644
--- a/spec/lib/gitlab/git/storage/circuit_breaker_spec.rb
+++ b/spec/lib/gitlab/git/storage/circuit_breaker_spec.rb
@@ -2,7 +2,7 @@ require 'spec_helper'
describe Gitlab::Git::Storage::CircuitBreaker, clean_gitlab_redis_shared_state: true, broken_storage: true do
let(:circuit_breaker) { described_class.new('default') }
- let(:hostname) { Gitlab.config.gitlab.hostname }
+ let(:hostname) { Gitlab::Environment.hostname }
let(:cache_key) { "storage_accessible:default:#{hostname}" }
def value_from_redis(name)