From: Mark Andrews Date: Wed, 11 Jun 2025 12:30:49 +0000 (+1000) Subject: nsec3-ent.kasp.db is updated too fast for rndc reload X-Git-Tag: v9.21.10~54^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52c29e3ab28794e84c629970f097d6fcac2b8dba;p=thirdparty%2Fbind9.git nsec3-ent.kasp.db is updated too fast for rndc reload ensure a second has elasped before updating the zone file by adding 'sleep 1' to test.sh --- diff --git a/bin/tests/system/nsec3/tests.sh b/bin/tests/system/nsec3/tests.sh index 757d181203b..bcb1144adae 100644 --- a/bin/tests/system/nsec3/tests.sh +++ b/bin/tests/system/nsec3/tests.sh @@ -608,7 +608,8 @@ set_server "ns3" "10.53.0.3" # confirm the ENT name does not exist yet dig_with_opts +noquestion "@${SERVER}" x.y.z.$ZONE >"dig.out.$ZONE.test$n.1" || ret=1 grep "status: NXDOMAIN" "dig.out.$ZONE.test$n.1" >/dev/null || ret=1 -# add a name with an ENT, bump the SOA, and reload +# add a name with an ENT, bump the SOA, and reload ensuring the time stamp changes +sleep 1 sed -e 's/1 *; serial/3/' ns3/template.db.in >ns3/nsec3-ent.kasp.db echo "x.y.z A 10.0.0.4" >>ns3/nsec3-ent.kasp.db rndc_reload ns3 10.53.0.3