mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 08:15:00 +00:00
Improve postgresql failover specs.
This commit is contained in:
parent
f1615c2148
commit
1c7b4381cc
@ -108,6 +108,10 @@ describe ActiveRecord::ConnectionHandling do
|
||||
end
|
||||
end
|
||||
|
||||
expect(postgresql_fallback_handler.masters_down.hash).to eq(
|
||||
"default" => true
|
||||
)
|
||||
|
||||
ActiveRecord::Base.unstub(:postgresql_connection)
|
||||
|
||||
postgresql_fallback_handler.initiate_fallback_to_master
|
||||
|
Loading…
x
Reference in New Issue
Block a user