]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix timing in tests_nsec3_change.py
authorMark Andrews <marka@isc.org>
Thu, 5 Feb 2026 22:39:15 +0000 (09:39 +1100)
committerMark Andrews <marka@isc.org>
Thu, 5 Feb 2026 22:39:15 +0000 (09:39 +1100)
The zone file is updated too soon causing the reload to fail.
Add a 1 second sleep to ensure the modification time has changed.

bin/tests/system/nsec3/tests_nsec3_change.py

index 860c8d3caf0599a30214e728ca8e4624f7569e5f..d5ec16f5b403ea3f83e23adf3386c767a4bea1fd 100644 (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}")