Missed a spot in 45fe5dc793

This commit is contained in:
Guo Xiang Tan 2018-04-20 13:58:50 +08:00
parent 050ce48bd0
commit 98d880b67a
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ describe DiscourseRedis do
it 'should fallback to the master server once it is up' do
fallback_handler.master = false
redis_connection = DiscourseRedis.raw_connection.client
redis_connection = DiscourseRedis.raw_connection._client
Redis::Client.expects(:new).with(DiscourseRedis.slave_config).returns(redis_connection)
redis_connection.expects(:call).with([:info]).returns(DiscourseRedis::FallbackHandler::MASTER_LINK_STATUS)