mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FIX: Pubsub connections need to be killed too.
This commit is contained in:
@ -84,6 +84,7 @@ describe DiscourseRedis do
|
||||
fallback_handler.master = false
|
||||
Redis::Client.any_instance.expects(:call).with([:info]).returns(DiscourseRedis::FallbackHandler::MASTER_LINK_STATUS)
|
||||
Redis::Client.any_instance.expects(:call).with([:client, [:kill, 'type', 'normal']])
|
||||
Redis::Client.any_instance.expects(:call).with([:client, [:kill, 'type', 'pubsub']])
|
||||
|
||||
fallback_handler.initiate_fallback_to_master
|
||||
|
||||
|
Reference in New Issue
Block a user