From 6bf8838a09d0f4e728e59a0fa1dbd109376bcfe8 Mon Sep 17 00:00:00 2001 From: Junchao-Mellanox Date: Tue, 27 Aug 2024 05:08:10 +0300 Subject: [PATCH] Fix ut issue --- src/sonic-py-common/tests/test_syslogger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sonic-py-common/tests/test_syslogger.py b/src/sonic-py-common/tests/test_syslogger.py index 98d69ad972c2..35e0fd058606 100644 --- a/src/sonic-py-common/tests/test_syslogger.py +++ b/src/sonic-py-common/tests/test_syslogger.py @@ -84,8 +84,8 @@ def test_runtime_config_negative(self, mock_connector): mock_db = mock.MagicMock() mock_db.get = mock.MagicMock(side_effect=Exception('')) mock_connector.return_value = mock_db - syslogger.SysLogger(log_identifier='log', enable_runtime_config=True) + log = syslogger.SysLogger(log_identifier='log', enable_runtime_config=True) - ret, msg = syslogger.SysLogger.update_log_level() + ret, msg = log.update_log_level() assert not ret assert msg