Module: check_mk
Branch: master
Commit: 63a8e67829a8cb7de7a5a7a7ae77241a1633ccd0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=63a8e67829a8cb…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jan 10 16:10:40 2019 +0100
Fixed random "Your request timed out after 110 seconds" during unit test
execution
* html() instances were not correctly invalidated by the fixture
register_builtin_html()
* The constructor of the html object did register an alarm signal to
trigger the request timeout but did not unregister it.
* Instead of adding the destruction code to the the fixture we should
implement this as a context manager in the future.
Change-Id: Ia0414e1b1e5544c8a6ac4d9aaf016822a3b03b3b
---
tests/unit/cmk/gui/conftest.py | 3 +
tests/unit/cmk/gui/test_dashboard.py | 170 +++++++++++++++-------
tests/unit/cmk/gui/test_htmllib_TimeoutManager.py | 3 +-
tests/unit/cmk/gui/test_sidebar.py | 113 +++++++-------
4 files changed, 185 insertions(+), 104 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=63a8e67829…