]> git.ipfire.org Git - thirdparty/bind9.git/commit
Update serve-stale system test
authorMatthijs Mekking <matthijs@isc.org>
Wed, 8 Mar 2023 08:11:19 +0000 (09:11 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Thu, 9 Mar 2023 07:14:17 +0000 (08:14 +0100)
commit4ce9114b34cb24230f79cd69340e97bf8e9289b2
tree6bc85b45cf4b851fa3038ba5ac5ba291c398eeb9
parentac9a4a73be831756ccedb3ef091e108e4ce1cf83
Update serve-stale system test

The serve-stale system test was intermittently failing due to a timing
issue:

    I:serve-stale:check stale data.example TXT was refreshed...
    I:serve-stale:failed

The RRset is refreshed, however, it first checks for an expected log
line, prior checking that the stale data.example TXT was refreshed
(using dig). This log line is there to ensure the record is actually
refreshed before we start querying again. Alternatively we could just
retry_quiet 10 <wait for dig output matches expectations>. It would
lower the chances for intermittent test failures, since there is no
longer a "check for log line, sleep one second if check fails, check
for log line, ...", prior to the check.

(cherry picked from commit 0bf36da305bc2d028450fa2313f3c0789e6e7451)
bin/tests/system/serve-stale/tests.sh