mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Fix flakey cast discovery test (#115063)
This commit is contained in:
parent
553c147933
commit
8e645c9b32
@ -271,9 +271,11 @@ async def test_start_discovery_called_once(
|
||||
) -> None:
|
||||
"""Test pychromecast.start_discovery called exactly once."""
|
||||
await async_setup_cast(hass)
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
assert castbrowser_mock.return_value.start_discovery.call_count == 1
|
||||
|
||||
await async_setup_cast(hass)
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
assert castbrowser_mock.return_value.start_discovery.call_count == 1
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user