]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix resolver tests: prefetch 40/41
authorDiego Fronza <diego@isc.org>
Mon, 2 Dec 2019 22:19:56 +0000 (19:19 -0300)
committerMichał Kępień <michal@isc.org>
Thu, 9 Jan 2020 10:44:44 +0000 (11:44 +0100)
commit89129a3a85587cb195fb4607c9a400a03e84399a
tree2037b9f7dfb5a3fd9dae21e406ccf97209d67489
parentf06c1dde90271c54ee66af3fa5ec111253fe4126
Fix resolver tests: prefetch 40/41

These two tests were failing basically because in order for prefetching to
happen, the TTL for a given DNS record must be greater than or equal to
the prefetch config value + 9.

The previous TTL for both records was 10, while prefetch value in
configuration was 3, thus making only records with TTL >= 12 elligible
for prefetching.

TTL value for both records was adjusted to the value 13, and prefetch
value was set to 4 (inc by 1), so records with TTL (4 + 9) >= 13 are
elligible for prefetching.

Adjusting prefetch value to 4 gives the test 1 second more to avoid time
problems when sharing resources on a heavy loaded PC.

Also prefetch value in settings is now read by the script and used
by it to corrrectly calculate the amount of time needed to delay before
sending a request to trigger prefetch, adding a bit of flexibility to
fine tune the test in the future.

(cherry picked from commit a711d6f8c012d65da2635e857e0d6a04b859c428)
bin/tests/system/resolver/ns4/tld1.db
bin/tests/system/resolver/ns4/tld2.db
bin/tests/system/resolver/ns5/named.conf.in
bin/tests/system/resolver/ns6/example.net.db.in
bin/tests/system/resolver/tests.sh