From 98d880b67a3b0327246049cf5e24421a04ecb0ce Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 20 Apr 2018 13:58:50 +0800 Subject: [PATCH] Missed a spot in https://github.com/discourse/discourse/commit/45fe5dc793e8baf06c7d35e530842e5fff189828 --- spec/components/discourse_redis_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/components/discourse_redis_spec.rb b/spec/components/discourse_redis_spec.rb index c1b94859f9e..ea824d75f86 100644 --- a/spec/components/discourse_redis_spec.rb +++ b/spec/components/discourse_redis_spec.rb @@ -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)