Skip to content

Commit e9baa8c

Browse files
committed
Dev: unittests: Adjust unit test for previous commit
1 parent 8c3189a commit e9baa8c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/unittests/test_sbd.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,9 @@ def test_adjust_systemd_start_timeout(self, mock_get_sbd_value_from_config, mock
321321
def test_get_sbd_delay_start_expected_diskbased(self, mock_token_and_consensus_timeout):
322322
inst = sbd.SBDTimeout()
323323
inst.disk_based = True
324-
inst.pcmk_delay_max = 10
325324
inst.msgwait = 5
326325
mock_token_and_consensus_timeout.return_value = 10
327-
self.assertEqual(inst.get_sbd_delay_start_expected(), 25)
326+
self.assertEqual(inst.get_sbd_delay_start_expected(), 15)
328327

329328
@patch('crmsh.corosync.token_and_consensus_timeout')
330329
def test_get_sbd_delay_start_expected_diskless(self, mock_token_and_consensus_timeout):
@@ -348,7 +347,6 @@ def test_get_stonith_timeout(self, mock_load_configurations, mock_get_sbd_delay_
348347
def test_get_stonith_timeout_expected_diskbased(self, mock_token_and_consensus_timeout, mock_logger_debug):
349348
inst = sbd.SBDTimeout()
350349
inst.disk_based = True
351-
inst.pcmk_delay_max = 10
352350
inst.msgwait = 5
353351
mock_token_and_consensus_timeout.return_value = 10
354352
result = inst.get_stonith_timeout_expected()

0 commit comments

Comments
 (0)