[9.18] fix: test: verify-axfr.db gets updated too fast in mirror test

Add a 1 second wait before updating verify-axfr.db so that the
modification time of the file changes.

Closes #5376

Backport of MR !10586

Merge branch 'backport-5376-verify-axfr-db-gets-updated-too-fast-in-mirror-test-9.18' into 'bind-9.18'

See merge request isc-projects/bind9!10610
This commit is contained in:
Mark Andrews 2025-06-19 20:01:43 +00:00
commit 8c80d1aaea

View file

@ -129,6 +129,7 @@ n=$((n + 1))
echo_i "checking that an AXFR of an updated, correctly signed mirror zone is accepted ($n)"
ret=0
nextpart ns3/named.run >/dev/null
sleep 1
cat ns2/verify-axfr.db.good.signed >ns2/verify-axfr.db.signed
reload_zone verify-axfr ${UPDATED_SERIAL_GOOD}
$RNDCCMD 10.53.0.3 retransfer verify-axfr >/dev/null 2>&1