mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
[9.18] fix: test: Fix flaky reclimit test
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:
commit
eb56645333
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue