mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:14:44 +08:00
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:

committed by
GitHub

parent
332ac0f299
commit
ab4158d257
@ -411,6 +411,8 @@ RSpec.configure do |config|
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Discourse.redis.flushdb
|
||||
end
|
||||
|
||||
config.before(:each, type: :multisite) do
|
||||
|
Reference in New Issue
Block a user