Skip to content
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
6 changes: 4 additions & 2 deletions tests/test_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,10 @@ def test_qu_response(quick_timing: None) -> None:
"ash-other.local.",
addresses=[socket.inet_aton("10.0.4.2")],
)
# register
zc.register_service(info)
# Register and inject the announcement directly so the cache state is
# deterministic; announcing on loopback would race the phases below.
zc.registry.async_add(info)
_inject_response(zc, r.DNSIncoming(zc.generate_service_broadcast(info, None).packets()[0]))

def _validate_complete_response(answers):
has_srv = has_txt = has_a = has_aaaa = has_nsec = False
Expand Down
Loading