mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 07:48:02 +08:00
Improve postgresql failover specs.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user