Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Aug 21, 2019
1 parent d8749d9 commit f719591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/utils/test_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def test_signal_processing_test_after_fork_called(self):
log_to_mock = 'salt.utils.process.MultiprocessingProcess._setup_process_logging'
with patch(sig_to_mock) as ma, patch(log_to_mock) as mb:
self.sh_proc = salt.utils.process.SignalHandlingMultiprocessingProcess(target=self.no_op_target)
self.sh_proc._run()
self.sh_proc.run()
ma.assert_called()
mb.assert_called()

Expand All @@ -342,7 +342,7 @@ def test_signal_processing_test_final_methods_called(self):
with patch(sig_to_mock):
with patch(teardown_to_mock) as ma, patch(log_to_mock) as mb:
self.sh_proc = salt.utils.process.SignalHandlingMultiprocessingProcess(target=self.no_op_target)
self.sh_proc._run()
self.sh_proc.run()
ma.assert_called()
mb.assert_called()

Expand Down

0 comments on commit f719591

Please sign in to comment.