fix: test: Fix cyclic glues (again)
Some checks are pending
CodeQL / Analyze (push) Waiting to run
SonarCloud / Build and analyze (push) Waiting to run

Previous fix `ed90d578b3a98f45eb8bc09966e9c4ab870a156d` uses
`wait_for_line()` by mistake, and the test aims to wait for two log
lines to be printed before continuing.

In principle, `wait_for_all()` should do, but `running` should always be
printed first, so `wait_for_sequence()` seems to be the right fit here.

Merge branch 'colin/fix-cyclic-glues-again' into 'main'

See merge request isc-projects/bind9!12013
This commit is contained in:
Colin Vidal 2026-05-13 22:31:32 +02:00
commit b4e8e431eb

View file

@ -50,7 +50,7 @@ def test_cyclic_glues(ns1, ns4, templates):
templates.render("ns1/root.db", {"broken_ns": True})
with ns1.watch_log_from_here() as watcher:
ns1.rndc("reload")
watcher.wait_for_line(["running", "zone ./IN: loaded serial"])
watcher.wait_for_all(["running", "zone ./IN: loaded serial"])
with ns4.watch_log_from_here() as watcher:
ns4.rndc("flush")