Skip to content

Commit

Permalink
add tests for parameters sbd watchdog and msgwait timeouts 4
Browse files Browse the repository at this point in the history
  • Loading branch information
yeoldegrove committed May 14, 2020
1 parent 132dbca commit 3dcb23a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/unit/modules/test_crmshmod.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,7 @@ def test_manage_sbd_workaround(self):
mock_file_replace = MagicMock(return_code=0)

with patch.dict(crmshmod.__salt__, {
'cmd.retcode': mock_cmd_run,
'file.replace': mock_file_replace}):
'cmd.retcode': mock_cmd_run}:
sbd, devs = crmshmod._manage_sbd(True, ['disk1', 'disk2'], '10', '20')

mock_cmd_run.assert_has_calls([
Expand Down

0 comments on commit 3dcb23a

Please sign in to comment.