]> 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>
Wed, 8 Mar 2023 16:14:59 +0000 (17:14 +0100)
commit0bf36da305bc2d028450fa2313f3c0789e6e7451
tree73566d6e345a51dd6550ff28c7175fc8b8072c23
parent1c8255efeabc6a81e91b0824a1de7ad680bc1db9
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.
bin/tests/system/serve-stale/tests.sh