mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user