DEV: Remove test that we no longer need.

DEV: Remove test that we no longer need.

diff --git a/spec/lib/internal_metric/global_spec.rb b/spec/lib/internal_metric/global_spec.rb
index 29723ce..32457dd 100644
--- a/spec/lib/internal_metric/global_spec.rb
+++ b/spec/lib/internal_metric/global_spec.rb
@@ -13,9 +13,6 @@ module DiscoursePrometheus::InternalMetric
 
     describe 'when a replica has been configured' do
       before do
-        @orig_logger = Rails.logger
-        Rails.logger = @fake_logger = FakeLogger.new
-
         config = ActiveRecord::Base.connection_config
 
         config.merge!(
@@ -24,17 +21,12 @@ module DiscoursePrometheus::InternalMetric
         )
       end
 
-      after do
-        Rails.logger = @orig_logger
-      end
-
       it 'should collect the right metrics' do
         metric = Global.new
         metric.collect
 
         expect(metric.postgres_master_available).to eq(1)
         expect(metric.postgres_replica_available).to eq(0)
-        expect(@fake_logger.errors.first).to match(/Connection refused/)
       end
     end
   end

GitHub sha: 0ada24bd