DEV: Flush redis db after each system test (#19415)

This ensures that all system tests are starting from a clean state and
not leak state between requests. Note that we have to simplify flush the
Redis db here because it is not pratical to manually clean up Redis keys
in system tests.
This commit is contained in:
Alan Guo Xiang Tan
2022-12-12 07:53:39 +08:00
committed by GitHub
parent 332ac0f299
commit ab4158d257

View File

@ -411,6 +411,8 @@ RSpec.configure do |config|
end
end
end
Discourse.redis.flushdb
end
config.before(:each, type: :multisite) do