bind9/bin/tests/system/statistics
Ondřej Surý 308c370796
Allow either UDP or TCP queries in flight in statistics test
The "active sockets" and "queries in progress" assertions previously
required exactly one extra UDP/IPv4 socket and exactly one UDP query in
progress, with no TCP counterpart.  That shape held only because the
broken TCP-fallback path left the resolver retrying UDP indefinitely.

With the fix in place, after two UDP timeouts to the same authority the
resolver legitimately escalates to TCP, and a stats snapshot taken
during recursion may catch the in-flight query on either transport.
Count the UDP and TCP counters together so the test reflects the new
correct behaviour.

Assisted-by: Claude:claude-opus-4-7
2026-05-19 11:18:30 +02:00
..
ans4 Replace deprecated typing imports 2026-02-20 15:17:32 +01:00
ns1 Remove license headers from test zone files 2026-03-31 17:57:58 +02:00
ns2 Remove license headers from test zone files 2026-03-31 17:57:58 +02:00
ns3 Remove licensing header check for root.hint[s] 2026-04-28 15:37:10 +01:00
prereq.sh Reformat shell scripts with shfmt 2023-10-26 10:23:50 +02:00
tests.sh Allow either UDP or TCP queries in flight in statistics test 2026-05-19 11:18:30 +02:00
tests_sh_statistics.py Apply black formatting changes 2026-01-22 09:41:21 +01:00