fix: test: Bump edns-expire refresh timeout to 30 seconds

Rarely, RNDC fails to refresh the zone on FreeBSD in the default 10
seconds, causing test_edns_expire_refresh to fail with a TimeoutExpired
on the "rndc refresh edns-expire." call.  Give it more time, the same
way the reconfigure timeout was bumped in
test_reconfiguration_when_zone_transfer_is_in_the_middle_of_soa_query.

Assisted-by: Claude:claude-opus-4-8

Merge branch 'mnowak/bump-edns-expire-refresh-rndc-timeout' into 'main'

See merge request isc-projects/bind9!12152
This commit is contained in:
Michal Nowak 2026-06-01 15:56:36 +02:00
commit 14a1e0d2a9

View file

@ -428,7 +428,7 @@ def test_edns_expire_from_secondary(ns7):
def test_edns_expire_refresh(ns7):
time.sleep(1)
with ns7.watch_log_from_here() as watcher:
ns7.rndc("refresh edns-expire.")
ns7.rndc("refresh edns-expire.", timeout=30)
isctest.log.info("make sure the EDNS EXPIRE of 1814400 decreases a slightly")
pattern = Re("zone edns-expire/IN: got EDNS EXPIRE of 1814[0-3][0-9][0-9]")
watcher.wait_for_line(pattern)