Fix test not starting with the right state.

This commit is contained in:
Guo Xiang Tan 2017-10-23 12:20:39 +08:00
parent 09e7c1ce8a
commit 509ecbe9fb
1 changed files with 2 additions and 0 deletions

View File

@ -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