mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 17:04:59 +08:00
FIX: Reset state of DiscourseRedis::FallbackHandler
in tests.
This commit is contained in:
@ -64,6 +64,13 @@ class DiscourseRedis
|
||||
end
|
||||
end
|
||||
|
||||
# Used for testing
|
||||
def reset!
|
||||
@master = true
|
||||
@last_checked = nil
|
||||
@running = false
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def synchronize
|
||||
|
Reference in New Issue
Block a user