Watch logs from start in dialup system test

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.

(cherry picked from commit 283a7ab17d)
This commit is contained in:
Michal Nowak 2024-02-23 14:51:23 +01:00
parent 0356a34673
commit 195b892bde
No known key found for this signature in database

View 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,