]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Watch logs from start in dialup system test
authorMichal Nowak <mnowak@isc.org>
Fri, 23 Feb 2024 13:51:23 +0000 (14:51 +0100)
committerMichal Nowak <mnowak@isc.org>
Mon, 26 Feb 2024 10:22:40 +0000 (11:22 +0100)
When the first parametrized test takes a bit longer than usual, the zone
transfer in ns3 may succeed before the second parametrized test is even
started, and then watch_log_from_here() won't find the "Transfer status:
success" message in the named log. Using watch_log_from_start() instead
makes sure the test is more stable.

bin/tests/system/dialup/tests_dialup_zone_transfer.py

index 4a60c5f5bb57da970deddf90920f5698027a4c38..d49f80a3454929b5a0fbbc959fce7ebb8261116d 100644 (file)
@@ -22,7 +22,7 @@ def test_dialup_zone_transfer(named_port, servers, ns):
     # Drop the RD flag from the query
     msg.flags -= dns.flags.RD
     ns1response = isctest.query.tcp(msg, "10.53.0.1")
-    with servers[f"ns{ns}"].watch_log_from_here() as watcher:
+    with servers[f"ns{ns}"].watch_log_from_start() as watcher:
         watcher.wait_for_line(
             f"transfer of 'example/IN' from 10.53.0.{ns-1}#{named_port}: Transfer status: success",
             timeout=90,