Module: check_mk
Branch: master
Commit: 98e32075cb8646279c94f3d09cadfd34f4d8b2ab
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=98e32075cb8646…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 25 20:29:16 2019 +0100
Try to fix unstable test: test_active_check_execution()
The site.schedule_check() method does not seemed to wait for service
check processing. Looks like it did not always work as expected
because it did not start with the last check time of the service,
but the host check.
Change-Id: I0f6af78e0f26826f12a5e2b7991316488b8d8e32
---
tests/testlib/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index 895182a..755ffdf 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -323,7 +323,7 @@ class Site(object):
expected_state)
def schedule_check(self, hostname, service_description, expected_state):
- last_check_before = self._get_last_check(hostname)
+ last_check_before = self._get_last_check(hostname, service_description)
schedule_ts, wait_timeout = int(time.time()), 20
# Ensure the next check result is not in same second as the previous check