mirror of
https://github.com/esphome/esphome.git
synced 2025-07-29 06:36:45 +00:00
Improve stability for a test that crashes intermittently in CI (#8699)
Co-authored-by: NP v/d Spek <github_mail@lumensoft.nl>
This commit is contained in:
parent
dbce54477a
commit
87a9dd18c8
@ -75,6 +75,7 @@ async def test_devices_page(dashboard: DashboardTestHelper) -> None:
|
|||||||
assert response.headers["content-type"] == "application/json"
|
assert response.headers["content-type"] == "application/json"
|
||||||
json_data = json.loads(response.body.decode())
|
json_data = json.loads(response.body.decode())
|
||||||
configured_devices = json_data["configured"]
|
configured_devices = json_data["configured"]
|
||||||
|
assert len(configured_devices) != 0
|
||||||
first_device = configured_devices[0]
|
first_device = configured_devices[0]
|
||||||
assert first_device["name"] == "pico"
|
assert first_device["name"] == "pico"
|
||||||
assert first_device["configuration"] == "pico.yaml"
|
assert first_device["configuration"] == "pico.yaml"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user