Skip to content
Snippets Groups Projects
Commit 0de7f879 authored by Lubos Slovak's avatar Lubos Slovak
Browse files

tests-extra: Improved/fixed test for forced refresh

parent 231af9e9
No related branches found
No related tags found
No related merge requests found
......@@ -18,17 +18,17 @@ slave.update_zonefile(zone, version=1)
t.start()
serials_master = master.zones_wait(zone)
serials_slave = slave.zones_wait(zone)
serial_master = master.zone_wait(zone)
serial_slave = slave.zone_wait(zone)
# Check that the slave's serial is larger than master's
if serials_master["example.com."] >= serials_slave["example.com."]:
set_err("Master has newer or the same zone as slave.")
assert serial_master <= serial_slave
# Force refresh
slave.ctl("-f refresh example.com.")
t.sleep(2)
serials_slave = slave.zones_wait(zone)
compare(serials_slave["example.com."], serials_master["example.com."], "Forced refresh")
serial_slave = slave.zone_wait(zone)
compare(serial_slave, serial_master, "Forced refresh")
t.end()
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