]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Increase the TTL of test answers to prevent spurious failures 10531/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 28 Jun 2021 08:07:16 +0000 (10:07 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 28 Jun 2021 08:07:16 +0000 (10:07 +0200)
commitbe7cb52a8caf9279f672983afdbd12b64562ae4a
tree5e3674e753f918ad7733de65d93d7d9351db410f
parentdb3a36192f5ef25902f1649b8331d2139b3772a1
dnsdist: Increase the TTL of test answers to prevent spurious failures

The value of the TTL for negative answers was capped to 1s, which means
that the answer will only be present in the cache for the current second.
If the test starts at the end of a second in unix time, there is a real
risk that the entry is no longer usable when we try to fetch it from the
cache. Increase the TTL to 2s instead to reduce that risk.
regression-tests.dnsdist/test_Caching.py