]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add sleeps so that the modification time changes
authorMark Andrews <marka@isc.org>
Wed, 2 Aug 2023 06:16:30 +0000 (16:16 +1000)
committerMark Andrews <marka@isc.org>
Mon, 14 Aug 2023 23:39:53 +0000 (09:39 +1000)
The mkeys system test could fail because root zone was resigned
within the same second as it was previously signed causing reloads
to fail.  Add delays to the test to prevent this.

(cherry picked from commit 40e35293791244ff66b37b083e709ab3275af7c9)

bin/tests/system/mkeys/tests.sh

index c81058ff849e99f13f9d601d6a57626fa9b93462..5999e21635535f5dfd86acc4187f5cc6c2150477 100644 (file)
@@ -474,6 +474,7 @@ ret=0
 $SETTIME -D none -R none -K ns1 "$original" > /dev/null
 $SETTIME -D now -K ns1 "$standby1" > /dev/null
 $SETTIME -D now -K ns1 "$standby2" > /dev/null
+sleep 1 # ensure modification time changes
 $SIGNER -Sg -K ns1 -N unixtime -o . ns1/root.db > /dev/null 2>/dev/null
 copy_setports ns1/named2.conf.in ns1/named.conf
 rm -f ns1/root.db.signed.jnl