mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 19:46:55 +08:00
ed6c9d1545
There have been too many flaky tests as a result of leaking state in Redis so it is easier to resolve them by ensuring we flush Redis' database. Locally on my machine, calling `Discourse.redis.flushdb` takes around 0.1ms which means this change will have very little impact on test runtimes.
8 lines
245 B
Ruby
8 lines
245 B
Ruby
# frozen_string_literal: true
|
|
|
|
module RedisSnapshotHelper
|
|
def use_redis_snapshotting
|
|
puts "DEPRECATION NOTICE: `use_redis_snapshotting` has been deprecated without replacement as we now flush the Redis database after each test."
|
|
end
|
|
end
|