]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
test: resistency to timing issues
authorLibor Peltan <libor.peltan@nic.cz>
Thu, 3 Oct 2019 08:32:57 +0000 (10:32 +0200)
committerLibor Peltan <libor.peltan@nic.cz>
Thu, 3 Oct 2019 08:32:57 +0000 (10:32 +0200)
tests-extra/tests/ddns/forward/test.py

index 00f3d83e530a8dc6907c4d22f472136a9d197bb2..b54153b85fb8463edf861387d33ae4b3538c75ba 100644 (file)
@@ -15,7 +15,7 @@ t.link(zone, master, slave, ddns=True)
 t.start()
 
 master.zones_wait(zone)
-slave.zones_wait(zone)
+seri = slave.zones_wait(zone)
 
 # OK
 update = slave.update(zone)
@@ -23,7 +23,7 @@ update.add("forwarded.example.com.", 1, "TXT", "forwarded")
 update.send("NOERROR")
 resp = master.dig("forwarded.example.com.", "TXT")
 resp.check("forwarded")
-t.sleep(2)
+slave.zones_wait(zone, seri)
 t.xfr_diff(master, slave, zone)
 
 # NAME out of zone
@@ -32,7 +32,7 @@ update.add("forwarded.", 1, "TXT", "forwarded")
 update.send("NOTZONE")
 resp = master.dig("forwarded.", "TXT")
 resp.check(rcode="REFUSED")
-t.sleep(2)
+t.sleep(3)
 t.xfr_diff(master, slave, zone)
 
 t.end()