Make block_till_stopped test more flexible
This commit is contained in:
1 parent
bea7634b47
commit
a54e6af24a
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user