]> 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>
Mon, 27 Mar 2023 08:21:54 +0000 (08:21 +0000)
commit6a97848791e9a8bfa79db699f6cb4b9e4d989cee
tree708be4c170a8ed38cdd6d25d175283409d5910c4
parent3ed03c828719dd5b1c2e6ec1c343dda6d9686acf
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