Skip to content

Commit

Permalink
chnaged test file
Browse files Browse the repository at this point in the history
  • Loading branch information
kanza-latif committed Sep 26, 2024
1 parent 929ac18 commit e77850f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/hostcfgd/hostcfgd_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, \
Expand All @@ -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()
Expand Down

0 comments on commit e77850f

Please sign in to comment.