]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix timing issues in nsec3/tests_nsec3_reconfig.py
authorMark Andrews <marka@isc.org>
Wed, 21 Jan 2026 05:01:57 +0000 (16:01 +1100)
committerMark Andrews <marka@isc.org>
Wed, 21 Jan 2026 05:01:57 +0000 (16:01 +1100)
ns3/nsec3-ent.kasp.db is regenerated too fast resulting in
the subsequent 'rndc reload' call failing.  This has been
fixed.

bin/tests/system/nsec3/tests_nsec3_reconfig.py

index 26df38cfdd0630b55067765dce40e985cc2d8ce5..c1edd67fc73df0cd1f9625950209f58f495f876c 100644 (file)
@@ -324,6 +324,7 @@ def test_nsec3_ent(ns3, templates):
     assert match in str(rrset[0])
 
     # remove a name, bump the SOA, and reload
+    time.sleep(1)
     templates.render(f"{ns3.identifier}/nsec3-ent.kasp.db", {"serial": 2})
 
     messages = [
@@ -347,6 +348,7 @@ def test_nsec3_ent(ns3, templates):
     assert response.rcode() == dns.rcode.NXDOMAIN
 
     # add a name with an ENT, bump the SOA, and reload ensuring the time stamp changes
+    time.sleep(1)
     templates.render(f"{ns3.identifier}/nsec3-ent.kasp.db", {"serial": 3})
 
     messages = [