Commit 8b0ccbcb authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch '323621-follow-up-from-disable-load-balancing-when-running-rake-tasks' into 'master'

Remove unused program_name method

See merge request gitlab-org/gitlab!55879
parents e2face65 c0c7467a
......@@ -121,10 +121,6 @@ module Gitlab
::License.feature_available?(:db_load_balancing)
end
def self.program_name
@program_name ||= File.basename($0)
end
def self.start_service_discovery
return unless service_discovery_enabled?
......
......@@ -209,7 +209,6 @@ RSpec.describe Gitlab::Database::LoadBalancing do
it 'returns true when Sidekiq is being used' do
allow(described_class).to receive(:hosts).and_return(%w(foo))
allow(Gitlab::Runtime).to receive(:sidekiq?).and_return(true)
expect(described_class).not_to receive(:program_name)
expect(described_class.configured?).to eq(true)
end
......@@ -246,12 +245,6 @@ RSpec.describe Gitlab::Database::LoadBalancing do
end
end
describe '.program_name' do
it 'returns a String' do
expect(described_class.program_name).to be_an_instance_of(String)
end
end
describe '.configure_proxy' do
after do
described_class.clear_configuration
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment