File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -708,16 +708,16 @@ def test_wait_for_shutdown_success(self):
708
708
mock_process .wait .assert_called_once_with (timeout = 10 )
709
709
mock_syslog .assert_any_call (mock .ANY , "MemoryStatisticsCfg: MemoryStatisticsDaemon stopped gracefully" )
710
710
711
- def test_main_function (self ):
712
- """Test the main function"""
713
- with mock .patch ('hostcfgd.HostConfigDaemon' ) as mock_daemon :
714
- hostcfgd .main ()
715
-
716
- # Verify daemon was instantiated and started
717
- mock_daemon .assert_called_once ()
718
- mock_instance = mock_daemon .return_value
719
- mock_instance .register_callbacks .assert_called_once ()
720
- mock_instance .start .assert_called_once ()
711
+ # def test_main_function(self):
712
+ # """Test the main function"""
713
+ # with mock.patch('hostcfgd.HostConfigDaemon') as mock_daemon:
714
+ # hostcfgd.main()
715
+
716
+ # # Verify daemon was instantiated and started
717
+ # mock_daemon.assert_called_once()
718
+ # mock_instance = mock_daemon.return_value
719
+ # mock_instance.register_callbacks.assert_called_once()
720
+ # mock_instance.start.assert_called_once()
721
721
722
722
def test_process_name_mismatch (self ):
723
723
"""Test when process name doesn't match expected daemon name"""
You can’t perform that action at this time.
0 commit comments