Commit 0de7f879 authored by Lubos Slovak's avatar Lubos Slovak
Browse files

tests-extra: Improved/fixed test for forced refresh

parent 231af9e9
......@@ -18,17 +18,17 @@ slave.update_zonefile(zone, version=1)
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[""] >= serials_slave[""]:
set_err("Master has newer or the same zone as slave.")
assert serial_master <= serial_slave
# Force refresh
slave.ctl("-f refresh")
serials_slave = slave.zones_wait(zone)
compare(serials_slave[""], serials_master[""], "Forced refresh")
serial_slave = slave.zone_wait(zone)
compare(serial_slave, serial_master, "Forced refresh")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment