This commit is contained in:
parent
cd086acc82
commit
dd5bd95b1d
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user