Module: check_mk
Branch: master
Commit: 56506d8d046b3b9f64b18ca4ca887ad2f7de3561
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=56506d8d046b3b…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Dec 19 12:54:09 2018 +0100
Make test_locking a bit more stable.
Basically the test is fundamentally broken, we just make it a bit more
likely that it succeeds.
Change-Id: I8667dd3571af000dd7183078ec32d3507a7b18fc
---
tests/unit/cmk/utils/test_store.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/unit/cmk/utils/test_store.py b/tests/unit/cmk/utils/test_store.py
index d63dff4..90393ea 100644
--- a/tests/unit/cmk/utils/test_store.py
+++ b/tests/unit/cmk/utils/test_store.py
@@ -271,4 +271,5 @@ def test_locking(tmpdir):
break
time.sleep(0.01)
assert store1.have_lock(path) == False
+ time.sleep(0.2)
assert store2.have_lock(path) == True