Skip to content

Commit 1b31ed5

Browse files
authored
test: pass timeout=0 explicitly in test_event_loop_blocked (#1676)
1 parent 01ef6ff commit 1b31ed5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎tests/test_core.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,11 +753,10 @@ def _background_register():
753753

754754

755755
@pytest.mark.asyncio
756-
@patch("zeroconf._core._STARTUP_TIMEOUT", 0)
757756
@patch("zeroconf._core.AsyncEngine._async_setup", new_callable=AsyncMock)
758757
async def test_event_loop_blocked(mock_start):
759758
"""Test we raise NotRunningException when waiting for startup that times out."""
760759
aiozc = AsyncZeroconf(interfaces=["127.0.0.1"])
761760
with pytest.raises(NotRunningException):
762-
await aiozc.zeroconf.async_wait_for_start()
761+
await aiozc.zeroconf.async_wait_for_start(timeout=0)
763762
assert aiozc.zeroconf.started is False

0 commit comments

Comments
 (0)