fix: test: nsec3/tests_nsec3_change.py updates zone file too fast

The zone file is updated too soon causing the reload to fail.
Add a 1 second sleep to ensure the modification time has changed.

Closes #5734

Merge branch '5734-fix-tests-nsec3-change-py' into 'main'

See merge request isc-projects/bind9!11525
This commit is contained in:
Mark Andrews 2026-02-06 21:38:22 +11:00
commit 2aba637548

View file

@ -62,6 +62,7 @@ def after_servers_start(ns3, templates):
fqdn = f"{zone}."
isctest.kasp.wait_keymgr_done(ns3, zone)
time.sleep(1)
shutil.copyfile(f"{nsdir}/template2.db.in", f"{nsdir}/{zone}.db")
ns3.rndc(f"reload {zone}")