try to delay connection test
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2019-05-19 23:24:29 +02:00
parent cd086acc82
commit dd5bd95b1d

View File

@ -16,6 +16,9 @@ def test_hassio_running_and_enabled(host):
def test_hassio_socket(host): def test_hassio_socket(host):
# Verify the socket is listening for HTTP traffic # Verify the socket is listening for HTTP traffic
for _ in range(30):
if host.socket("tcp://0.0.0.0:80").is_listening:
break
time.sleep(1)
assert host.socket("tcp://0.0.0.0:80").is_listening assert host.socket("tcp://0.0.0.0:80").is_listening