From 40e35293791244ff66b37b083e709ab3275af7c9 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 2 Aug 2023 16:16:30 +1000 Subject: [PATCH] Add sleeps so that the modification time changes 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. --- bin/tests/system/mkeys/tests.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/tests/system/mkeys/tests.sh b/bin/tests/system/mkeys/tests.sh index 68757fa824..bc2a59af35 100644 --- a/bin/tests/system/mkeys/tests.sh +++ b/bin/tests/system/mkeys/tests.sh @@ -45,6 +45,7 @@ mkeys_resign_rootzone() ( n=$1 ( cd ns1 + sleep 1 # ensure modification time changes $SIGNER -PSg -N unixtime -o . root.db > signer.out.test$1 2>&1 ) nextpart ns1/named.run > /dev/null @@ -477,6 +478,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