]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Use a 2s TTL in testCacheNoStale to prevent failures 10547/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 30 Jun 2021 16:41:01 +0000 (18:41 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 30 Jun 2021 16:41:01 +0000 (18:41 +0200)
commit0f0b16988c5f92bc9b2c7b993fd51cae817ccb83
treed5e7ca9b5dac02efc617a505947c980b1dce99bd
parent686e7ac8c801a5a9178576399eadb57a4ed3e651
dnsdist: Use a 2s TTL in testCacheNoStale to prevent failures

With the previous 1s TTL, the entry was only valid for the current
second, but we might have been very near the end of that second
already when inserting. With a 2s TTL (which was apparently intended
anyway) we have a full second before the entry expires.
regression-tests.dnsdist/test_Caching.py