Commit f786aac2a0 for bind
commit f786aac2a089e0ca921463b954e439f750fc8dc1
Author: Nicki Křížek <nicki@isc.org>
Date: Wed Nov 11 09:35:36 2026 +0000
Use TCP for an abandoned query in serve_stale test
test_no_stale_data_times_out gives up on its UDP query after a second,
but the resolver still answers it with SERVFAIL once its own timeout
expires. When the next test's socket got the same ephemeral port, that
late response arrived there and failed test_servfail_with_ede22 with
BadResponse. Use TCP to prevent the UDP response mismatch.
Assisted-by: Claude:claude-mythos-5-2
diff --git a/bin/tests/system/serve_stale/tests_serve_stale_tcp.py b/bin/tests/system/serve_stale/tests_serve_stale_tcp.py
index bdf77b02c9..8b8da53cd1 100644
--- a/bin/tests/system/serve_stale/tests_serve_stale_tcp.py
+++ b/bin/tests/system/serve_stale/tests_serve_stale_tcp.py
@@ -68,7 +68,7 @@ def test_no_stale_data_times_out():
msg = isctest.query.create("notincache.example.", "TXT", dnssec=False)
start = time.monotonic()
with pytest.raises(dns.exception.Timeout):
- isctest.query.udp(msg, "10.53.0.3", timeout=1, attempts=1)
+ isctest.query.tcp(msg, "10.53.0.3", timeout=1, attempts=1)
assert time.monotonic() - start >= 1