[9.18] fix: test: Fix flaky reclimit test
Some checks are pending
CodeQL / Analyze (push) Waiting to run
SonarCloud / Build and analyze (push) Waiting to run

The max-types-per-name cache eviction tests were flaky because two test steps were missing a sleep between queries, causing TTL-based cache verification to fail when both queries completed within the same second.

Backport of MR !11782

Merge branch 'backport-ondrej/fix-flaky-reclimit-9.18' into 'bind-9.18'

See merge request isc-projects/bind9!12028
This commit is contained in:
Ondřej Surý 2026-05-15 09:51:18 +02:00
commit eb56645333

View file

@ -282,7 +282,8 @@ echo_i "checking that priority names under the max-types-per-name limit get cach
for rrtype in AAAA MX NS; do
check_manytypes 1 manytypes.big "${rrtype}" NOERROR big SOA 120 || ret=1
done
# Wait at least 1 second
# Wait at least 1 second for the TTL to decrement
sleep 1
for rrtype in AAAA MX NS; do
check_manytypes 2 manytypes.big "${rrtype}" NOERROR big SOA "" 120 || ret=1
done
@ -358,7 +359,8 @@ echo_i "checking that priority NXDOMAIN names over the max-types-per-name limit
for rrtype in AAAA MX NS; do
check_manytypes 1 manytypes.big "${rrtype}" NOERROR big SOA 120 || ret=1
done
# Wait at least 1 second
# Wait at least 1 second for the TTL to decrement
sleep 1
for rrtype in AAAA MX NS; do
check_manytypes 2 manytypes.big "${rrtype}" NOERROR big SOA "" 120 || ret=1
done