Skip to content

Commit a148376

Browse files
committed
Python3 version:
- clean downtime test
1 parent fcd683a commit a148376

File tree

4 files changed

+3
-2092
lines changed

4 files changed

+3
-2092
lines changed

test/test_downtimes.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ def test_schedule_fixed_host_downtime_with_service(self):
961961

962962
# Make the host be UP/HARD
963963
time.sleep(1)
964-
self.scheduler_loop(1, [[host, 0, 'UP']])
964+
self.scheduler_loop(2, [[host, 0, 'UP']])
965965
assert "HARD" == host.state_type
966966
assert "UP" == host.state
967967
assert "HARD" == svc.state_type
@@ -970,7 +970,8 @@ def test_schedule_fixed_host_downtime_with_service(self):
970970
assert 0 == host.current_notification_number, 'Should not have any notification'
971971
assert 0 == svc.current_notification_number, 'Should not have any notification'
972972

973-
# Only 1 action because the host downtime start
973+
# Only 2 actions: host downtime start and end. Former host problem and recovery are
974+
# master notifications that have been removed on downtime end
974975
self.assert_actions_count(2)
975976
# The downtime started
976977
self.assert_actions_match(0, '/notifier.pl', 'command')

test_run/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)