mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-21 17:41:35 -04:00
Fix flaky reclimit test by adding missing sleep
The cache verification in steps 11 and 15 checks that the TTL has decreased from its initial value to confirm the response was served from cache, but the sleep between the two queries was missing. Both queries could complete within the same second, leaving the TTL unchanged and causing the test to incorrectly conclude the entry was not cached.
This commit is contained in:
parent
c7b53348fc
commit
80f04a9ee5
1 changed files with 4 additions and 2 deletions
|
|
@ -285,7 +285,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
|
||||
|
|
@ -361,7 +362,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