diff options
author | Tiger <twatson@gitlab.com> | 2019-08-23 07:19:51 +0300 |
---|---|---|
committer | Tiger <twatson@gitlab.com> | 2019-08-23 07:19:51 +0300 |
commit | 08fcb2379e8e39408a3c2457b036fd6a8c28d5f8 (patch) | |
tree | 6950c9d6f0e2fb59bf5d379cdfdad9cf83126cec /spec/lib | |
parent | e12f7fe062574b0ad3e271b149928252a99119f5 (diff) |
CE port: allow SRV records in DB service discovery
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/database_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/lib/gitlab/database_spec.rb b/spec/lib/gitlab/database_spec.rb index 77e58b6d5c7..8d37de32179 100644 --- a/spec/lib/gitlab/database_spec.rb +++ b/spec/lib/gitlab/database_spec.rb @@ -347,6 +347,17 @@ describe Gitlab::Database do pool.disconnect! end end + + it 'allows setting of a custom hostname and port' do + pool = described_class.create_connection_pool(5, '127.0.0.1', 5432) + + begin + expect(pool.spec.config[:host]).to eq('127.0.0.1') + expect(pool.spec.config[:port]).to eq(5432) + ensure + pool.disconnect! + end + end end describe '.cached_column_exists?' do |