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