Skip to content
Draft
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
8 changes: 6 additions & 2 deletions tests/services/test_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,11 @@ def get_service_info_helper(zc, type, name):
args=(zc, service_type, service_name),
)
helper_thread.start()
wait_time = (const._LISTENER_TIME + info._AVOID_SYNC_DELAY_RANDOM_INTERVAL[1] + 5) / 1000
# 500ms CI buffer absorbs scheduling jitter on slow runners
# (notably Windows) without compromising the timing windows
# the rest of the test relies on; entries added each loop
# iteration must still land inside _DUPLICATE_QUESTION_INTERVAL.
wait_time = (const._LISTENER_TIME + info._AVOID_SYNC_DELAY_RANDOM_INTERVAL[1] + 500) / 1000

# Expect query for SRV, TXT, A, AAAA
send_event.wait(wait_time)
Expand Down Expand Up @@ -484,7 +488,7 @@ def get_service_info_helper(zc, type, name):
assert service_info is None

wait_time = (
const._DUPLICATE_QUESTION_INTERVAL + info._AVOID_SYNC_DELAY_RANDOM_INTERVAL[1] + 5
const._DUPLICATE_QUESTION_INTERVAL + info._AVOID_SYNC_DELAY_RANDOM_INTERVAL[1] + 500
) / 1000
# Expect no queries as all are suppressed by the question history
last_sent = None
Expand Down
Loading