]> git.ipfire.org Git - thirdparty/bind9.git/commit
reduce timing dependencies in system tests
authorEvan Hunt <each@isc.org>
Sun, 27 Sep 2020 06:27:24 +0000 (23:27 -0700)
committerOndřej Surý <ondrej@sury.org>
Sat, 7 Nov 2020 19:49:53 +0000 (20:49 +0100)
commit5307bf64ce802cb2d8aa4a59c283fd0c581d41ff
tree1e8704ee41eb3ae388124220cd69eca4ccf45db0
parentea2b04c361c29cdad80c92877184b063f23002d0
reduce timing dependencies in system tests

one of the tests in the resolver system test depends on dig
getting no response to its first two query attempts, and SERVFAIL
on the third after resolution times out.

using a 5-second retry timer in dig means the SERVFAIL response
could occur while dig is discarding the second query and preparing
to send the third. in this case the server's response could be
missed.  shortening the retry interval to 4 seconds ensures that
dig has already sent the third query when the SERVFAIL response
arrives.

also, the serve-stale system test could fail due to a race in which
it timed out after waiting ten seconds for a file to be written, and
the dig timeout was just a bit longer. this is addressed by extending
the dig timeout to 11 seconds for this test.
bin/tests/system/resolver/tests.sh
bin/tests/system/serve-stale/tests.sh