mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +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
|
yield
|
||||||
rescue Redis::CommandError => ex
|
rescue Redis::CommandError => ex
|
||||||
if ex.message =~ /READONLY/
|
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"
|
STDERR.puts "WARN: Redis is in a readonly state. Performed a noop"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user