Skip to content

Commit

Permalink
resolved error
Browse files Browse the repository at this point in the history
  • Loading branch information
kanza-latif committed Sep 11, 2024
1 parent c1740b0 commit a45a57a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/hostcfgd/hostcfgd_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,17 @@ def test_dns_events(self):
pass
mocked_run_cmd.assert_has_calls([call(['systemctl', 'restart', 'resolv-config'], True, False)])

def test_memory_statistics_event(self):
def test_memory_statistics_event(self):
HOSTCFG_DAEMON_CFG_DB = {
'MEMORY_STATISTICS': {
'config': {
'enabled': 'true',
'retention_time': '15 days',
'sampling_interval': '5 minutes'
}
}
}

MockConfigDb.set_config_db(HOSTCFG_DAEMON_CFG_DB)
daemon = hostcfgd.HostConfigDaemon()
daemon.register_callbacks()
Expand All @@ -321,7 +331,6 @@ def test_memory_statistics_event(self):
mocked_subprocess.check_call.assert_has_calls(expected_calls, any_order=True)



class TestDnsHandler:

@mock.patch('hostcfgd.run_cmd')
Expand Down

0 comments on commit a45a57a

Please sign in to comment.