|
22 | 22 | from zeroconf._services.info import ServiceInfo |
23 | 23 | from zeroconf.aio import AsyncZeroconf |
24 | 24 |
|
25 | | -from .. import has_working_ipv6, _inject_response |
| 25 | +from .. import has_working_ipv6, _inject_response, _wait_for_start |
26 | 26 |
|
27 | 27 |
|
28 | 28 | log = logging.getLogger('zeroconf') |
@@ -435,6 +435,7 @@ def test_backoff(suppresses_mock): |
435 | 435 |
|
436 | 436 | type_ = "_http._tcp.local." |
437 | 437 | zeroconf_browser = Zeroconf(interfaces=['127.0.0.1']) |
| 438 | + _wait_for_start(zeroconf_browser) |
438 | 439 |
|
439 | 440 | # we are going to patch the zeroconf send to check query transmission |
440 | 441 | old_send = zeroconf_browser.async_send |
@@ -513,6 +514,7 @@ def test_first_query_delay(): |
513 | 514 | """ |
514 | 515 | type_ = "_http._tcp.local." |
515 | 516 | zeroconf_browser = Zeroconf(interfaces=['127.0.0.1']) |
| 517 | + _wait_for_start(zeroconf_browser) |
516 | 518 |
|
517 | 519 | # we are going to patch the zeroconf send to check query transmission |
518 | 520 | old_send = zeroconf_browser.async_send |
@@ -666,6 +668,7 @@ def on_service_state_change(zeroconf, service_type, state_change, name): |
666 | 668 | service_removed.set() |
667 | 669 |
|
668 | 670 | zeroconf_browser = Zeroconf(interfaces=['127.0.0.1']) |
| 671 | + _wait_for_start(zeroconf_browser) |
669 | 672 |
|
670 | 673 | # we are going to patch the zeroconf send to check packet sizes |
671 | 674 | old_send = zeroconf_browser.async_send |
|
0 commit comments