python-jaeger-client/fix-check-error.patch
zhangxianting ffb317759f fix check error
(cherry picked from commit d8685215bc57ea9167e2c8552c8ac0df31d9e04f)
2024-08-16 17:22:15 +08:00

26 lines
829 B
Diff

From d41056b46a6506a8986371007a3de9004a684d3a Mon Sep 17 00:00:00 2001
From: zhangxianting <zhangxianting@uniontech.com>
Date: Fri, 16 Aug 2024 16:05:23 +0800
Subject: [PATCH] fix check error
---
tests/test_utils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_utils.py b/tests/test_utils.py
index 0b111de..7f77131 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -52,7 +52,7 @@ class ConfigTests(unittest.TestCase):
mock_metrics = mock.MagicMock()
er = utils.ErrorReporter(mock_metrics)
er.error('foo', 1)
- assert mock_metrics.count.called_with('foo', 1)
+ assert mock_metrics.count.call_with('foo', 1)
def test_error_reporter_doesnt_send_log_messages_if_before_deadline(self):
mock_logger = mock.MagicMock()
--
2.43.0