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