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