mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
don't pollute test suite with warning message from readonly Redis
This commit is contained in:
@ -146,7 +146,7 @@ class DiscourseRedis
|
||||
yield
|
||||
rescue Redis::CommandError => ex
|
||||
if ex.message =~ /READONLY/
|
||||
unless Discourse.recently_readonly?
|
||||
unless Discourse.recently_readonly? || Rails.env.test?
|
||||
STDERR.puts "WARN: Redis is in a readonly state. Performed a noop"
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user