Skip to content
代码片段 群组 项目
提交 2de640c7 编辑于 作者: Bruno Cadonna's avatar Bruno Cadonna 提交者: Matthias J. Sax
浏览文件

MINOR: Remove staticmethod tag to be able to use logger of instance (#9086)

A system test failed with the following error: global name 'self' is not defined

The reason was that `self` was accessed to log a message in a static method. This commit makes the method an instance method.

Reviewer: Matthias J. Sax <matthias@confluent.io>
上级 e9b58cf7
No related branches found
No related tags found
无相关合并请求
......@@ -95,8 +95,7 @@ class BaseStreamsTest(KafkaTest):
timeout_sec=60,
err_msg="Did expect to read '%s' from %s" % (message, processor.node.account))
@staticmethod
def verify_from_file(processor, message, file):
def verify_from_file(self, processor, message, file):
result = processor.node.account.ssh_output("grep -E '%s' %s | wc -l" % (message, file), allow_fail=False)
try:
return int(result)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册