2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-08 12:06:51 +08:00

DEV: Change use of Redis flushall to flushdb.

FLUSHALL removes all keys from all databases. Instead we only want to
remove keys from the current Redis database.
This commit is contained in:
Guo Xiang Tan 2020-05-19 10:20:00 +08:00
parent f99f6ca111
commit 96c02caba7
No known key found for this signature in database
GPG key ID: FBD110179AAC1F20
15 changed files with 18 additions and 18 deletions

View file

@ -21,11 +21,11 @@ describe DiscourseRedis do
let(:raw_redis) { Redis.new(DiscourseRedis.config) }
before do
raw_redis.flushall
raw_redis.flushdb
end
after do
raw_redis.flushall
raw_redis.flushdb
end
describe 'when namespace is enabled' do