mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Make block_till_stopped test more flexible
This commit is contained in:
parent
bea7634b47
commit
a54e6af24a
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user