提交 004ff651 编写于 作者: S Stan Hu

Squelch output of ActiveSupport::Cache::NullStore in tests

When a spec fails relating to the cache, the job log can easily exceed
the maximum length and make it harder to see the actual issue
(e.g. https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/239803017).
上级 76889a99
# This class can generate a lot of output if it fails,
# so squelch the instance variable output.
class ActiveSupport::Cache::NullStore
def inspect
"<#{self.class}>"
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册