Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/database/load_balancing/service_discovery_spec.rb')
-rw-r--r--spec/lib/gitlab/database/load_balancing/service_discovery_spec.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/spec/lib/gitlab/database/load_balancing/service_discovery_spec.rb b/spec/lib/gitlab/database/load_balancing/service_discovery_spec.rb
index 7197b99fe33..442fa678d4e 100644
--- a/spec/lib/gitlab/database/load_balancing/service_discovery_spec.rb
+++ b/spec/lib/gitlab/database/load_balancing/service_discovery_spec.rb
@@ -194,7 +194,6 @@ RSpec.describe Gitlab::Database::LoadBalancing::ServiceDiscovery, feature_catego
describe '#replace_hosts' do
before do
- stub_env('LOAD_BALANCER_PARALLEL_DISCONNECT', 'true')
allow(service)
.to receive(:load_balancer)
.and_return(load_balancer)
@@ -257,26 +256,6 @@ RSpec.describe Gitlab::Database::LoadBalancing::ServiceDiscovery, feature_catego
service.replace_hosts([address_foo, address_bar])
end
end
-
- context 'when LOAD_BALANCER_PARALLEL_DISCONNECT is false' do
- before do
- stub_env('LOAD_BALANCER_PARALLEL_DISCONNECT', 'false')
- end
-
- it 'disconnects them sequentially' do
- host = load_balancer.host_list.hosts.first
-
- allow(service)
- .to receive(:disconnect_timeout)
- .and_return(2)
-
- expect(host)
- .to receive(:disconnect!)
- .with(timeout: 2)
-
- service.replace_hosts([address_bar])
- end
- end
end
describe '#addresses_from_dns' do