try to delay connection test
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Robert Kaussow 2019-05-19 23:24:29 +02:00
parent cd086acc82
commit dd5bd95b1d
1 changed files with 5 additions and 2 deletions

View File

@ -16,6 +16,9 @@ def test_hassio_running_and_enabled(host):
def test_hassio_socket(host):
# 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