From 0f0b16988c5f92bc9b2c7b993fd51cae817ccb83 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 30 Jun 2021 18:41:01 +0200 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regression-tests.dnsdist/test_Caching.py b/regression-tests.dnsdist/test_Caching.py index 9c6253e3ff..e1a4e2b76a 100644 --- a/regression-tests.dnsdist/test_Caching.py +++ b/regression-tests.dnsdist/test_Caching.py @@ -1002,7 +1002,7 @@ class TestCachingNoStale(DNSDistTest): query = dns.message.make_query(name, 'A', 'IN') response = dns.message.make_response(query) rrset = dns.rrset.from_text(name, - 1, + ttl, dns.rdataclass.IN, dns.rdatatype.A, '127.0.0.1') -- 2.47.2