diff --git a/tests/hostcfgd/hostcfgd_test.py b/tests/hostcfgd/hostcfgd_test.py index d08ef0c7..d1a9811d 100644 --- a/tests/hostcfgd/hostcfgd_test.py +++ b/tests/hostcfgd/hostcfgd_test.py @@ -337,7 +337,7 @@ def test_memory_statistics_event(self, mock_config_db_connector): if not memory_statistics: raise ValueError("No MEMORY_STATISTICS data found in HOSTCFG_DAEMON_CFG_DB") - mock_instance.get_table.return_value = memory_stats_config + mock_instance.get_table.return_value = memory_statistics # Patch subprocess.Popen and check_call with patch('hostcfgd.subprocess.Popen') as mocked_popen, \ @@ -346,7 +346,7 @@ def test_memory_statistics_event(self, mock_config_db_connector): # Create the daemon instance daemon = hostcfgd.HostConfigDaemon() # Load config using the correct nested dictionary - daemon.memory_statisticsCfg.load(memory_stats_config) + daemon.memory_statisticsCfg.load(memory_statistics) # Mock subprocess.Popen behavior popen_mock = mock.Mock()