From a54e6af24a3e93a4a3489ada1fc1679b35be0355 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 14 Dec 2014 19:59:52 -0800 Subject: [PATCH] Make block_till_stopped test more flexible --- ha_test/test_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ha_test/test_core.py b/ha_test/test_core.py index 7c6dc2a902c..2da8151261b 100644 --- a/ha_test/test_core.py +++ b/ha_test/test_core.py @@ -58,7 +58,7 @@ class TestHomeAssistant(unittest.TestCase): # hass.block_till_stopped checks every second if it should quit # we have to wait worst case 1 second wait_loops = 0 - while blocking_thread.is_alive() and wait_loops < 10: + while blocking_thread.is_alive() and wait_loops < 50: wait_loops += 1 time.sleep(0.1)