From 509ecbe9fb7da033f42ae3dd6bbf2786317d3f66 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 23 Oct 2017 12:20:39 +0800 Subject: [PATCH] Fix test not starting with the right state. --- .../connection_adapters/postgresql_fallback_adapter_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/components/active_record/connection_adapters/postgresql_fallback_adapter_spec.rb b/spec/components/active_record/connection_adapters/postgresql_fallback_adapter_spec.rb index c353d305289..6f0b256c54a 100644 --- a/spec/components/active_record/connection_adapters/postgresql_fallback_adapter_spec.rb +++ b/spec/components/active_record/connection_adapters/postgresql_fallback_adapter_spec.rb @@ -27,6 +27,8 @@ describe ActiveRecord::ConnectionHandling do let(:postgresql_fallback_handler) { PostgreSQLFallbackHandler.instance } before do + postgresql_fallback_handler.initialized = true + ['default', multisite_db].each do |db| with_multisite_db(db) do postgresql_fallback_handler.master_down = false