Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix race in dlna_dmr test #111428

Merged
merged 1 commit into from
Feb 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/components/dlna_dmr/test_media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -2043,6 +2043,8 @@ async def test_poll_availability(
# Check that an update will poll the device for availability
domain_data_mock.upnp_factory.async_create_device.reset_mock()
await async_update_entity(hass, mock_entity_id)
await hass.async_block_till_done()

domain_data_mock.upnp_factory.async_create_device.assert_awaited_once_with(
MOCK_DEVICE_LOCATION
)
Expand All @@ -2057,6 +2059,8 @@ async def test_poll_availability(
# Check that an update will notice the device and connect to it
domain_data_mock.upnp_factory.async_create_device.reset_mock()
await async_update_entity(hass, mock_entity_id)
await hass.async_block_till_done()

domain_data_mock.upnp_factory.async_create_device.assert_awaited_once_with(
MOCK_DEVICE_LOCATION
)
Expand Down