mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
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:
parent
0356a34673
commit
195b892bde
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue