DEV: Upgrade Redis to 4.2.1.

This commit is contained in:
Guo Xiang Tan
2020-06-15 09:57:44 +08:00
parent 1303e89a72
commit 0ff86b00cb
7 changed files with 12 additions and 40 deletions

View File

@ -87,31 +87,6 @@ describe DiscourseRedis do
expect(Discourse.recently_readonly?).to eq(true)
end
end
describe '.exists' do
it 'should return false when key is not present' do
expect(Discourse.redis.exists('test')).to eq(false)
end
it 'should return false when keys are not present' do
expect(Discourse.redis.exists('test', 'test2')).to eq(false)
end
it 'should return true when key is present' do
Discourse.redis.set('test', 1)
expect(Discourse.redis.exists('test')).to eq(true)
end
it 'should return true when any key is present' do
Discourse.redis.set('test', 1)
Discourse.redis.set('test2', 1)
expect(Discourse.redis.exists('test')).to eq(true)
expect(Discourse.redis.exists('test', 'test2')).to eq(true)
expect(Discourse.redis.exists('test2', 'test3')).to eq(true)
end
end
end
context '.slave_host' do