]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
verify-axfr.db gets updated too fast in mirror test
authorMark Andrews <marka@isc.org>
Tue, 17 Jun 2025 03:01:38 +0000 (13:01 +1000)
committerMark Andrews <marka@isc.org>
Thu, 19 Jun 2025 16:27:45 +0000 (16:27 +0000)
Add a 1 second wait before updating verify-axfr.db so that the
modification time of the file changes.

(cherry picked from commit c19956b3cbf0ae55303266633dad2a1eca677224)

bin/tests/system/mirror/tests.sh

index 77a88f581f92b99ecb9e8e0a9c1fd40b16ee832d..58a634f82064458749c56df7e5f83258c65d3d75 100644 (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