Skip to content
Snippets Groups Projects
Commit de410190 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

tests-extra: ensure reproducible test starts at the beginning of a second

parent d850b668
No related branches found
No related tags found
No related merge requests found
Pipeline #89429 passed
......@@ -8,6 +8,7 @@ import os
import shutil
import os.path
import random
import time
from dnstest.test import Test
from dnstest.keys import Keymgr
......@@ -72,6 +73,10 @@ os.rename(ZFILE, ZFILE_)
t.start()
# ensure the test starts at the beginning of a second
while round((time.time()%1) * 100) > 1:
time.sleep(0.01)
# now un-hide zonefile, invoke load and NOTIFY, and let both slaves sign in same second!
os.rename(ZFILE_, ZFILE)
master.ctl("zone-reload")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment