Commit 4fb1005
committed
test: synchronise test_integration on browser first-query
After #1760 shaved the probe random wait on loopback, async_register_service
can finish faster than the ServiceBrowser fires its first startup query.
The test asserts `len(answers[0]) == 0` (the initial outbound query carries
no known PTR) — when the cache already holds the registered service by the
time the first query is built, RFC 6762 §7.1 known-answer suppression makes
that assertion racy.
Wait for `got_query` once before calling `async_register_service` so the
first startup query (built against an empty cache) is guaranteed to fire
before the registration lands. Then clear the event and proceed.1 parent 78670f7 commit 4fb1005
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1066 | 1066 | | |
1067 | 1067 | | |
1068 | 1068 | | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
1069 | 1075 | | |
1070 | 1076 | | |
1071 | 1077 | | |
| |||
0 commit comments