[9.20] fix: test: Fix timing issues in nsec3/tests_nsec3_reconfig.py

`ns3/nsec3-ent.kasp.db` is regenerated too fast resulting in
the subsequent `rndc reload` call failing.  This has been
fixed.

Closes #5707

Backport of MR !11467

Merge branch 'backport-5707-timing-issues-in-nsec3-tests_nsec3_reconfig-py-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!11468
This commit is contained in:
Mark Andrews 2026-01-21 22:02:36 +11:00
commit 090f33849b

View 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 = [