mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 19:25:12 +02:00
Fix flakey cast discovery test (#115063)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user